2
############################################################################
5
# AUTHOR(S): Radim Blazek
6
# PURPOSE: Build all vectors in current mapset
7
# COPYRIGHT: (C) 2004 by the GRASS Development Team
9
# This program is free software under the GNU General Public
10
# License (>=v2). Read the file COPYING that comes with GRASS
13
#############################################################################
16
#% description: Rebuilds topology on all vector maps in the current mapset.
20
if test "$GISBASE" = ""; then
21
echo "You must be in GRASS GIS to run this program." >&2
25
# skip parser if no args are given
26
if [ "$#" -gt 0 ] ; then
27
if [ "$1" != "@ARGS_PARSED@" ] ; then
28
exec g.parser "$0" "$@"
32
MAPSET=`g.gisenv get=MAPSET`
35
for VECT in `g.list type=vect mapset="$MAPSET" | sed 1,2d | grep -v '^-*$'`
37
g.message "Building topology for vector <$VECT> in mapset <$MAPSET> ..."
38
g.message message="v.build map=\"$VECT@$MAPSET\""
39
v.build map="$VECT@$MAPSET"