[GRASS-SVN] r49253 - grass-addons/vector/v.swathwidth

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 15 08:28:28 EST 2011


Author: martinl
Date: 2011-11-15 05:28:28 -0800 (Tue, 15 Nov 2011)
New Revision: 49253

Modified:
   grass-addons/vector/v.swathwidth/v.swathwidth
Log:
v.swathwidth - fix compilation

Modified: grass-addons/vector/v.swathwidth/v.swathwidth
===================================================================
--- grass-addons/vector/v.swathwidth/v.swathwidth	2011-11-15 11:12:26 UTC (rev 49252)
+++ grass-addons/vector/v.swathwidth/v.swathwidth	2011-11-15 13:28:28 UTC (rev 49253)
@@ -64,10 +64,13 @@
 #% answer: 100
 #%end
 
-# Run g.parser
+if [ -z "$GISBASE" ] ; then
+   echo "You must be in GRASS GIS to run this program." >&2
+   exit 1
+fi
+
 if [ "$1" != "@ARGS_PARSED@" ] ; then
-  PARSER=`which g.parser`
-  exec $PARSER "$0" "$@"
+  exec g.parser "$0" "$@"
 fi
 
 #stay quiet



More information about the grass-commit mailing list