[GRASS-SVN] r49241 - in grass-addons/tools: . addons

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 14 10:01:13 EST 2011


Author: martinl
Date: 2011-11-14 07:01:12 -0800 (Mon, 14 Nov 2011)
New Revision: 49241

Added:
   grass-addons/tools/addons/
   grass-addons/tools/addons/compile.sh
Log:
initial tools for compiling addons (for wingrass)


Added: grass-addons/tools/addons/compile.sh
===================================================================
--- grass-addons/tools/addons/compile.sh	                        (rev 0)
+++ grass-addons/tools/addons/compile.sh	2011-11-14 15:01:12 UTC (rev 49241)
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+if [ -z "$3" ]; then
+    echo "usage: $0 path topdir version"
+    echo "eg. $0 ~/src/grass-addons/grass7/ ~/src/grass_trunk/dist.i686-pc-linux-gnu/ 7"
+    exit 1
+fi
+
+path="$1"
+topdir="$2"
+version="$3"
+
+rm -r ~/.grass$version/addons
+mkdir ~/.grass$version/addons
+
+cd $path
+for c in "display" "general" "imagery" "raster" "vector"; do
+    if [ ! -d $c ]; then
+	continue
+    fi
+    cd $c
+    for m in `ls -d */ 2>/dev/null` ; do
+	echo "Compiling $m..."
+	cd $m
+	make MODULE_TOPDIR=$topdir \
+            BIN=~/.grass$version/addons/bin \
+            HTMLDIR=~/.grass$version/addons/docs/html \
+            MANDIR=~/.grass$version/addons/man/man1 \
+            SCRIPTDIR=~/.grass$version/addons/scripts \
+            ETC=~/.grass$version/addons/etc
+	cd ..
+    done
+    cd ..
+done
+
+exit 0


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



More information about the grass-commit mailing list