~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to scripts/v.build.all/v.build.all

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
############################################################################
3
 
#
4
 
# MODULE:       v.build.all
5
 
# AUTHOR(S):    Radim Blazek
6
 
# PURPOSE:      Build all vectors in current mapset
7
 
# COPYRIGHT:    (C) 2004 by the GRASS Development Team
8
 
#
9
 
#               This program is free software under the GNU General Public
10
 
#               License (>=v2). Read the file COPYING that comes with GRASS
11
 
#               for details.
12
 
#
13
 
#############################################################################
14
 
 
15
 
#%Module
16
 
#% description: Rebuilds topology on all vector maps in the current mapset.
17
 
#% keywords: vector
18
 
#%End
19
 
 
20
 
if test "$GISBASE" = ""; then
21
 
    echo "You must be in GRASS GIS to run this program." >&2
22
 
    exit 1
23
 
fi
24
 
 
25
 
# skip parser if no args are given
26
 
if [ "$#" -gt 0 ] ; then
27
 
  if [ "$1" != "@ARGS_PARSED@" ] ; then
28
 
    exec g.parser "$0" "$@"
29
 
  fi
30
 
fi
31
 
 
32
 
MAPSET=`g.gisenv get=MAPSET`
33
 
 
34
 
# use g.mlist?
35
 
for VECT in `g.list type=vect mapset="$MAPSET" | sed 1,2d | grep -v '^-*$'`
36
 
do
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"
40
 
done
41
 
 
42
 
exit 0