[GRASS-SVN] r55208 - grass/branches/develbranch_6/scripts/v.rast.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 25 14:22:40 PST 2013


Author: hamish
Date: 2013-02-25 14:22:39 -0800 (Mon, 25 Feb 2013)
New Revision: 55208

Modified:
   grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats
Log:
better handle spaces in GISDBASE (#1683), remove unused variables

Modified: grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats
===================================================================
--- grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats	2013-02-25 22:19:24 UTC (rev 55207)
+++ grass/branches/develbranch_6/scripts/v.rast.stats/v.rast.stats	2013-02-25 22:22:39 UTC (rev 55208)
@@ -74,8 +74,6 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename "$0"`
-
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then
     g.message "awk required, please install awk or gawk first" 
@@ -130,8 +128,7 @@
 COLPREFIX="$GIS_OPT_COLPREFIX"
 
 ### setup enviro vars ###
-eval `g.gisenv`
-: ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
+MAPSET=`g.gisenv get=MAPSET`
 
 # does map exist in CURRENT mapset?
 eval `g.findfile element=vector file="$GIS_OPT_VECTOR" mapset="$MAPSET"`



More information about the grass-commit mailing list