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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Mar 12 13:29:38 PDT 2013


Author: martinl
Date: 2013-03-12 13:29:38 -0700 (Tue, 12 Mar 2013)
New Revision: 55340

Modified:
   grass-addons/tools/addons/grass-addons.sh
Log:
fix grass-addons.sh, use GRASS_SKIP_MAPSET_OWNER_CHECK

Modified: grass-addons/tools/addons/grass-addons.sh
===================================================================
--- grass-addons/tools/addons/grass-addons.sh	2013-03-12 20:13:51 UTC (rev 55339)
+++ grass-addons/tools/addons/grass-addons.sh	2013-03-12 20:29:38 UTC (rev 55340)
@@ -15,12 +15,12 @@
     cd tools/addons/ 
     ./compile-xml.sh
     for version in 6 7 ; do
-	cd $HOME/.grass${version}/addons/
-	cp modules.xml $WWWDIR/grass${version}/
-	rsync -ag --delete logs $WWWDIR/grass${version}/
+    	cd $HOME/.grass${version}/addons/
+    	cp modules.xml $WWWDIR/grass${version}/
+    	rsync -ag --delete logs $WWWDIR/grass${version}/
+    	cd $WWWDIR/grass${version}/logs
+    	ln -sf ALL.html index.html
     done
-else
-    echo "$revl X $revr -> nothing to do"
 fi
 }
 
@@ -31,7 +31,7 @@
 	cd $gdir
 	svn up
 	make distclean
-	if [ $gdir == "grass_trunk" ] ; then 
+	if [ $gdir = "grass_trunk" ] ; then 
 	    num=7
 	else
 	    num=6
@@ -42,7 +42,9 @@
     done
 }
 
-if [ "$2" = "c" ] || [ "$1" = "c" ] ; then
+export GRASS_SKIP_MAPSET_OWNER_CHECK="1"
+
+if [ "$1" = "c" ] || [ "$2" = "c" ] ; then
     recompile_grass
 fi
 



More information about the grass-commit mailing list