[GRASS-SVN] r55217 - grass/branches/develbranch_6/scripts/i.image.mosaic

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 25 15:07:48 PST 2013


Author: hamish
Date: 2013-02-25 15:07:48 -0800 (Mon, 25 Feb 2013)
New Revision: 55217

Modified:
   grass/branches/develbranch_6/scripts/i.image.mosaic/i.image.mosaic
Log:
better handle spaces in GISDBASE (#1683), bugfix on WinGrass, so candidate for backporting after testing.

Modified: grass/branches/develbranch_6/scripts/i.image.mosaic/i.image.mosaic
===================================================================
--- grass/branches/develbranch_6/scripts/i.image.mosaic/i.image.mosaic	2013-02-25 23:04:29 UTC (rev 55216)
+++ grass/branches/develbranch_6/scripts/i.image.mosaic/i.image.mosaic	2013-02-25 23:07:48 UTC (rev 55217)
@@ -74,7 +74,6 @@
     exec g.parser "$0" "$@"
 fi
 
-PROG=`basename "$0"`
 
 #### check if we have awk
 if [ ! -x "`which awk`" ] ; then
@@ -87,8 +86,10 @@
 LC_NUMERIC=C
 export LC_NUMERIC
    
-eval `g.gisenv`
-: ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
+### setup enviro vars ###
+MAPSET=`g.gisenv get=MAPSET`
+LOCATION_NAME=`g.gisenv get=LOCATION_NAME`
+GISDBASE=`g.gisenv get=GISDBASE`
 CURRLOCATION="$GISDBASE/$LOCATION_NAME/$MAPSET"
 
 g.message -w message='Do not forget to set region properly to cover all images!'



More information about the grass-commit mailing list