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

« back to all changes in this revision

Viewing changes to gui/scripts/r.recode.rules

  • 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
 
#
5
 
# MODULE:       r.colors.rules for GRASS 5.7
6
 
# AUTHOR(S):    Michael Barton 
7
 
# PURPOSE:      Permit use of rules in r.recode from GRASS 5.7
8
 
# COPYRIGHT:    (C) 2004 by the GRASS Development Team
9
 
#
10
 
#               This program is free software under the GNU General Public
11
 
#               License (>=v2). Read the file COPYING that comes with GRASS
12
 
#               for details.
13
 
#
14
 
#############################################################################
15
 
 
16
 
 
17
 
#%Module
18
 
#%  description: r.recode.rules - Use rules to recode categories in raster map
19
 
#%End
20
 
#%option
21
 
#% key: input
22
 
#% type: string
23
 
#% gisprompt: old,cell,raster
24
 
#% description: Name of raster map to recode
25
 
#% required : yes
26
 
#%end
27
 
#%option
28
 
#% key: output
29
 
#% type: string
30
 
#% gisprompt: old,cell,raster
31
 
#% description: Name of recoded raster map
32
 
#% required : yes
33
 
 
34
 
if  [ -z "$GISBASE" ] ; then
35
 
 echo "You must be in GRASS GIS to run this program."
36
 
 exit 1
37
 
fi   
38
 
 
39
 
if [ "$1" != "@ARGS_PARSED@" ] ; then
40
 
  exec g.parser "$0" "$@"
41
 
fi
42
 
 
43
 
exec "$GISBASE/etc/grass-xterm-wrapper" -e "$GISBASE/etc/grass-run.sh" r.recode "input=$GIS_OPT_INPUT" "output=$GIS_OPT_OUTPUT"