[mapserver-commits] r10555 - branches/branch-5-6/docs/scripts
svn at osgeo.org
svn at osgeo.org
Thu Sep 30 12:13:03 EDT 2010
Author: aboudreault
Date: 2010-09-30 16:13:03 +0000 (Thu, 30 Sep 2010)
New Revision: 10555
Modified:
branches/branch-5-6/docs/scripts/build_docs.sh
Log:
Synchronized trunk script/build_docs.sh script in 5.6 branch
Modified: branches/branch-5-6/docs/scripts/build_docs.sh
===================================================================
--- branches/branch-5-6/docs/scripts/build_docs.sh 2010-09-30 16:11:22 UTC (rev 10554)
+++ branches/branch-5-6/docs/scripts/build_docs.sh 2010-09-30 16:13:03 UTC (rev 10555)
@@ -3,13 +3,45 @@
LOCATION=${args[0]}
SVN_BRANCH=${args[1]}
OUTPUT_LOCATION=${args[2]}
+SVN_TRUNK="svn-trunk"
#LOCATION="/osgeo/mapserver.org"
LANGUAGES="en de"
cd $LOCATION/$SVN_BRANCH
+
+# remove all lang dir (except en) to get them updated properly
+for lang in $LANGUAGES;
+do
+ [ $lang == "en" ] || rm -rf $lang
+done
+
svn up
cd $LOCATION/$SVN_BRANCH
+
+# Copy all untranslated files in language dir and
+# copy all RFC from trunk
+for lang in $LANGUAGES;
+do
+ if [ $lang != "en" ]; then
+ cd en
+ IFS=$'\n'
+ for file in `find . | grep -v .svn`;
+ do
+ if [ ! -e "../$lang/$file" ]; then
+ cp -r "$file" ../$lang/
+ fi
+ done
+ unset IFS
+ cd ..
+ fi
+
+ # and copy all RFCs from trunk to branch
+ if [ $SVN_BRANCH != $SVN_TRUNK ]; then
+ [ -e $LOCATION/$SVN_TRUNK/$lang/development/rfc/ ] && cp -f $LOCATION/$SVN_TRUNK/$lang/development/rfc/*.txt $LOCATION/$SVN_BRANCH/$lang/development/rfc/
+ fi
+done
+
make html
make latex
make epub
@@ -20,7 +52,7 @@
cd $LOCATION/$SVN_BRANCH/build/latex/$lang
make all-pdf
cp MapServer.pdf $OUTPUT_LOCATION/$lang/
- cp -r $LOCATION/$SVN_BRANCH/build/html/$lang $OUTPUT_LOCATION/
done
+cp -fr $LOCATION/$SVN_BRANCH/build/html/* $OUTPUT_LOCATION/
cp $LOCATION/$SVN_BRANCH/build/epub/en/MapServer.epub $OUTPUT_LOCATION/en/MapServer.epub
More information about the mapserver-commits
mailing list