[GRASS-SVN] r58432 - grass-addons/tools/addons

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 10 04:16:00 PST 2013


Author: martinl
Date: 2013-12-10 04:16:00 -0800 (Tue, 10 Dec 2013)
New Revision: 58432

Modified:
   grass-addons/tools/addons/grass-addons.sh
Log:
grass-addons: update online manual pages

Modified: grass-addons/tools/addons/grass-addons.sh
===================================================================
--- grass-addons/tools/addons/grass-addons.sh	2013-12-10 08:06:59 UTC (rev 58431)
+++ grass-addons/tools/addons/grass-addons.sh	2013-12-10 12:16:00 UTC (rev 58432)
@@ -23,6 +23,10 @@
     	cd $WWWDIR/grass${version}/logs
     	ln -sf ALL.html index.html
     done
+
+    update_manual 7 0
+    update_manual 6 5
+    update_manual 6 4
 fi
 }
 
@@ -44,6 +48,22 @@
     done
 }
 
+update_manual() {
+    major=$1
+    minor=$2
+    echo "Updating manuals for GRASS ${major}.${minor}..."
+    cd $HOME/.grass${major}/addons/
+    dst="/osgeo/grass/grass-cms/grass${major}${minor}/manuals/addons/"
+    if [ ! -d $dst ] ; then
+	mkdir $dst
+	cp /osgeo/grass/grass-cms/grass${major}${minor}/manuals/grass_logo.png $dst
+	cp /osgeo/grass/grass-cms/grass${major}${minor}/manuals/grassdocs.css $dst
+    fi
+    for m in $(ls -d */) ; do 
+	cp ${m}docs/html/* $dst
+    done
+}
+
 export GRASS_SKIP_MAPSET_OWNER_CHECK="1"
 
 if [ "$1" = "c" ] || [ "$2" = "c" ] ; then



More information about the grass-commit mailing list