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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 12 03:05:46 PDT 2012


Author: martinl
Date: 2012-10-12 03:05:46 -0700 (Fri, 12 Oct 2012)
New Revision: 53372

Added:
   grass-addons/tools/addons/grass-addons.sh
Log:
addons maintance scripts: add cronjob script, now the collection
should complete


Added: grass-addons/tools/addons/grass-addons.sh
===================================================================
--- grass-addons/tools/addons/grass-addons.sh	                        (rev 0)
+++ grass-addons/tools/addons/grass-addons.sh	2012-10-12 10:05:46 UTC (rev 53372)
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+DIR=$HOME/src
+
+build_addons() {
+cd $DIR/grass-addons/ 
+
+revl=`svn info | grep 'Revision' | cut -d':' -f2 | tr -d ' '`
+revr=`svn info -rHEAD | grep 'Revision' | cut -d':' -f2 | tr -d ' '`
+
+echo "$revl X $revr"
+
+if [ "$revl" != "$revr" ] || [ "$1" = "f" ] ; then
+    svn up || (svn cleanup && svn up)
+
+    cd tools/addons/ 
+    ./compile-xml.sh
+fi
+}
+
+recompile_grass() {
+    cd $DIR
+
+    for dir in "grass_trunk" "grass6_devel" "grass64_release" ; do
+	cd $dir
+	svn up
+	make distclean
+	if [ $dir == "grass_trunk" ] ; then 
+	    num=7
+	else
+	    num=6
+	fi
+	../configures.sh grass$num
+	make
+	cd ..
+    done
+}
+
+#recompile_grass
+build_addons $1
+
+exit 0


Property changes on: grass-addons/tools/addons/grass-addons.sh
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:mime-type
   + text/x-sh
Added: svn:eol-style
   + native



More information about the grass-commit mailing list