[GRASS-SVN] r60196 - grass/branches/releasebranch_6_4/scripts/i.oif

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 11 13:57:28 PDT 2014


Author: neteler
Date: 2014-05-11 13:57:28 -0700 (Sun, 11 May 2014)
New Revision: 60196

Modified:
   grass/branches/releasebranch_6_4/scripts/i.oif/i.oif
Log:
i.oif: shell style sync'ed to devbr6

Modified: grass/branches/releasebranch_6_4/scripts/i.oif/i.oif
===================================================================
--- grass/branches/releasebranch_6_4/scripts/i.oif/i.oif	2014-05-11 20:50:18 UTC (rev 60195)
+++ grass/branches/releasebranch_6_4/scripts/i.oif/i.oif	2014-05-11 20:57:28 UTC (rev 60196)
@@ -73,20 +73,15 @@
 #% description: Print in shell script style
 #% End
 
-if  [ -z "$GISBASE" ]
-then
-	echo "You must be in GRASS GIS to run this program" >&2
-	exit 1
+if [ -z "$GISBASE" ] ; then
+    echo "You must be in GRASS GIS to run this program" >&2
+    exit 1
 fi
 
-if   [ "$1" != "@ARGS_PARSED@" ]
-then
-	exec g.parser "$0" "$@"
+if [ "$1" != "@ARGS_PARSED@" ] ; then
+    exec g.parser "$0" "$@"
 fi
 
-eval `g.gisenv`
-: ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
-LOCATION="$GISDBASE/$LOCATION_NAME/$MAPSET"
 
 # Open tempfiles
 temp_stddev="`g.tempfile $$`"



More information about the grass-commit mailing list