[GRASS-SVN] r55219 - grass/branches/develbranch_6/scripts/v.build.all
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 25 15:16:35 PST 2013
Author: hamish
Date: 2013-02-25 15:16:34 -0800 (Mon, 25 Feb 2013)
New Revision: 55219
Modified:
grass/branches/develbranch_6/scripts/v.build.all/v.build.all
Log:
better handle spaces in GISDBASE (#1683), slight rework of execution
Modified: grass/branches/develbranch_6/scripts/v.build.all/v.build.all
===================================================================
--- grass/branches/develbranch_6/scripts/v.build.all/v.build.all 2013-02-25 23:09:39 UTC (rev 55218)
+++ grass/branches/develbranch_6/scripts/v.build.all/v.build.all 2013-02-25 23:16:34 UTC (rev 55219)
@@ -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