[Mapbender-commits] r2357 - trunk/build

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Apr 7 09:11:20 EDT 2008


Author: christoph
Date: 2008-04-07 09:11:20 -0400 (Mon, 07 Apr 2008)
New Revision: 2357

Modified:
   trunk/build/build.sh
Log:
fixed bug in jsdoc

set correct mime type for html files

Modified: trunk/build/build.sh
===================================================================
--- trunk/build/build.sh	2008-04-07 12:50:26 UTC (rev 2356)
+++ trunk/build/build.sh	2008-04-07 13:11:20 UTC (rev 2357)
@@ -26,8 +26,8 @@
 # path to "extension" folder in Mapbender
 EXT_PATH="http/extensions"
 
-# array of javascript files for JSDoc
-JSDOC_F=("$JS_PATH/geometry.js" "$JS_PATH/point.js" "$JS_PATH/map.js" "$JS_PATH/map_obj.js" "$EXT_PATH/wz_jsgraphics.js")
+# string containing javascript files for JSDoc
+JSDOC_F="$JS_PATH/geometry.js $JS_PATH/point.js $JS_PATH/map.js $JS_PATH/map_obj.js $EXT_PATH/wz_jsgraphics.js"
 
 # array of javascript files for JSMin
 JSMIN_F=("$JS_PATH/geometry.js" "$JS_PATH/point.js" "$JS_PATH/map.js" "$JS_PATH/map_obj.js" "$EXT_PATH/jquery.js" "$EXT_PATH/wz_jsgraphics.js")
@@ -50,11 +50,7 @@
 
 #compile JSDoc
 echo "compiling JSDoc ..."
-for name in ${JSDOC_F[@]}
-do
-	echo "extracting doc from $FOLDER/$name"
-	perl $JSDOC_PATH/jsdoc.pl $FOLDER/$name 
-done
+perl $JSDOC_PATH/jsdoc.pl $FOLDER/$JSDOC_F
 
 #move JSDoc to folder
 mkdir $FOLDER/documents 2>/dev/null
@@ -65,10 +61,12 @@
 #check in JSDOC
 echo "committing JSDoc ..."
 svn add -q $FOLDER/documents/
-# to do: set property svn:mime-type text/html for all html files
-# cannot be set for folder, we have to do a for loop over all files
-# this doesn't work:
-# svn propset svn:mime-type text/html $FOLDER/documents/*.html
+# set property svn:mime-type text/html for all html files
+for file in `dir -d $FOLDER/documents/jsdoc/*.html`
+do
+	svn propset svn:mime-type text/html $file 2>/dev/null
+done
+
 svn commit -q -m updated_documentation --username $2 --password $3 $FOLDER/documents/
 
 #compile PHPDoc



More information about the Mapbender_commits mailing list