changeset 51:fae8cb8095bf

add shebang
author Denis Ah-Kang <denis@w3.org>
date Thu, 29 Sep 2011 16:50:36 +0200
parents c144438f08b0
children aaab764c0c8d
files build-catalog.sh src/main/scala/Main.scala
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/build-catalog.sh	Thu Sep 29 10:36:24 2011 -0400
+++ b/build-catalog.sh	Thu Sep 29 16:50:36 2011 +0200
@@ -1,6 +1,7 @@
+#!/bin/bash
 
 cd src/main/resources
 rm -Rf WWW
 grep -e '^WWW' ../../../files.txt | xargs cvs export -DNOW
 
-sed -i 's|http://www.w3.org/2005/07/pubrules|/2005/07/pubrules|g' WWW/2005/07/{13-pubrules-src.html,13-pubrules.xsl}
\ No newline at end of file
+sed -i 's|http://www.w3.org/2005/07/pubrules|/2005/07/pubrules|g' WWW/2005/07/{13-pubrules-src.html,13-pubrules.xsl}
--- a/src/main/scala/Main.scala	Thu Sep 29 10:36:24 2011 -0400
+++ b/src/main/scala/Main.scala	Thu Sep 29 16:50:36 2011 +0200
@@ -105,7 +105,7 @@
 
         /* first we generate the an HTML page were parameters in the form are set */
 
-        val pubrulesXML = Source("http://www.w3.org/2005/07/13-pubrules-src.html")
+        val pubrulesXML = Source(new URL("http://www.w3.org/2005/07/13-pubrules-src.html"))
 
         /* because they are Maps, paramsNoURI overrides the default parameters in defaultParams */
         val paramsForPubrulesSpecialized = defaultParams ++ paramsNoURI + ( "uri" -> spec )
@@ -122,7 +122,7 @@
 
         val paramsW = defaultParams ++ paramsNoURI + ( "doc_uri" -> spec )
 
-        pubrulesWrapper using paramsW applyOn (Source.fromTidy(spec)) getResponder()
+        pubrulesWrapper using paramsW applyOn (Source(spec)) getResponder()
 
       }
     }
@@ -253,7 +253,6 @@
     Source(streamSource)
   }
 
-
   // def fromTidyOld(url:URL):Source = {
   //   val is:InputStream = Http(new Request(url.toString) >> (tidy _))
   //   val streamSource = new StreamSource(is)
Set up and maintained by W3C Systems Team, please report bugs to sysreq@w3.org.

W3C would like to thank Microsoft who donated the server that allows us to run this service.