[GRASS-SVN] r37459 - grass/branches/develbranch_6/scripts/d.rast.leg

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 25 04:36:27 EDT 2009


Author: hamish
Date: 2009-05-25 04:36:27 -0400 (Mon, 25 May 2009)
New Revision: 37459

Modified:
   grass/branches/develbranch_6/scripts/d.rast.leg/d.rast.leg
Log:
bugfix: file search needs path vars

Modified: grass/branches/develbranch_6/scripts/d.rast.leg/d.rast.leg
===================================================================
--- grass/branches/develbranch_6/scripts/d.rast.leg/d.rast.leg	2009-05-25 08:33:43 UTC (rev 37458)
+++ grass/branches/develbranch_6/scripts/d.rast.leg/d.rast.leg	2009-05-25 08:36:27 UTC (rev 37459)
@@ -82,12 +82,12 @@
 #%end
 
 if test "$GISBASE" = ""; then
- echo "You must be in GRASS GIS to run this program." >&2
- exit 1
+    echo "You must be in GRASS GIS to run this program." >&2
+    exit 1
 fi
 
 if [ "$1" != "@ARGS_PARSED@" ] ; then
-  exec g.parser "$0" "$@"
+    exec g.parser "$0" "$@"
 fi
 
 if [ $GIS_FLAG_N -eq 1 ] ; then
@@ -114,6 +114,7 @@
 fi
 filemapset="${mapset}"
 # would it be better to search for cats/ file ??
+eval `g.gisenv`
 HISTFILEDIR=$GISDBASE/$LOCATION_NAME/$filemapset/cell_misc/
 eval `r.info -t "$GIS_OPT_MAP"`
 



More information about the grass-commit mailing list