[GRASS-SVN] r57568 - grass/branches/releasebranch_6_4/scripts/v.build.all

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 31 23:21:45 PDT 2013


Author: hamish
Date: 2013-08-31 23:21:45 -0700 (Sat, 31 Aug 2013)
New Revision: 57568

Modified:
   grass/branches/releasebranch_6_4/scripts/v.build.all/v.build.all
Log:
better handle spaces in GISDBASE (#1683), slight rework of execution (merge r55219 from devbr6)

Modified: grass/branches/releasebranch_6_4/scripts/v.build.all/v.build.all
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.build.all/v.build.all	2013-09-01 06:19:21 UTC (rev 57567)
+++ grass/branches/releasebranch_6_4/scripts/v.build.all/v.build.all	2013-09-01 06:21:45 UTC (rev 57568)
@@ -29,17 +29,14 @@
   fi
 fi
 
-eval `g.gisenv`
-: ${GISBASE?} ${GISDBASE?} ${LOCATION_NAME?} ${MAPSET?}
-LOCATION="$GISDBASE/$LOCATION_NAME/$MAPSET"
+MAPSET=`g.gisenv get=MAPSET`
 
-
+# use g.mlist?
 for VECT in `g.list type=vect mapset="$MAPSET" | sed 1,2d | grep -v '^-*$'`
 do
-    g.message "Build topology for vector '${VECT}@${MAPSET}'" 
-    CMD="v.build map=${VECT}@${MAPSET}"
-    g.message message="$CMD" 
-    $CMD
+    g.message "Building topology for vector <$VECT> in mapset <$MAPSET> ..."
+    g.message message="v.build map=\"$VECT@$MAPSET\""
+    v.build map="$VECT@$MAPSET"
 done
 
 exit 0



More information about the grass-commit mailing list