[Mapbender-commits] r4280 - trunk/build
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Jul 1 11:41:14 EDT 2009
Author: christoph
Date: 2009-07-01 11:41:14 -0400 (Wed, 01 Jul 2009)
New Revision: 4280
Added:
trunk/build/build_html_doc_trunk.sh
Log:
Added: trunk/build/build_html_doc_trunk.sh
===================================================================
--- trunk/build/build_html_doc_trunk.sh (rev 0)
+++ trunk/build/build_html_doc_trunk.sh 2009-07-01 15:41:14 UTC (rev 4280)
@@ -0,0 +1,40 @@
+#!/bin/bash
+#
+# expecting input param
+# $1 - the name of the user
+
+DOC_FOLDER="/home/cbaudson/workspace/trunk/documents/api_js/"
+MAPBENDER_FOLDER="/home/cbaudson/workspace/trunk/"
+
+#compile Doc
+cd ./NaturalDocs-1.4
+echo "compiling JSDoc ..."
+./NaturalDocs -i $MAPBENDER_FOLDER -o html $DOC_FOLDER -p $DOC_FOLDER
+
+# ask if commit
+echo "Do you also want to commit the documentation (yes/no)?"
+read createTag
+
+if test $createTag = "yes"
+then
+ # ask for SVN password
+# echo "In this case, please enter the SVN password for user $1"
+# stty -echo
+# read password
+# stty echo
+# echo ""
+
+ #check in Doc
+ echo "committing Doc ..."
+
+ # set property svn:mime-type text/html for all html files
+ for file in `find $DOC_FOLDER -name "*.html"`
+
+ do
+ svn -q propset svn:mime-type text/html $file
+ svn add -q $file
+ done
+
+ svn commit -m updated_documentation $DOC_FOLDER
+
+fi
\ No newline at end of file
Property changes on: trunk/build/build_html_doc_trunk.sh
___________________________________________________________________
Added: svn:executable
+ *
More information about the Mapbender_commits
mailing list