1
0
Fork 0
terragear/gisscripts/grass03patch.sh

41 lines
1.2 KiB
Bash
Raw Normal View History

2010-11-21 22:43:57 +00:00
#!/bin/sh
#
# Written by Martin Spott
#
# Copyright (C) 2010 Martin Spott - Martin (at) flightgear (dot) org
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Create reasonable symlinks pointing to this script to return proper
# $MODE-values for the "case" clause, like 'grass03patch.sh_shp'
MODE=`basename ${0} | cut -f 2 -d \_`
#
#PATCHMAP=clc00_nl
PATCHMAP=clc00
2010-11-21 22:43:57 +00:00
case ${MODE} in
shp)
MLIST=`g.mlist type=vect pattern="c[0-9][0-9][0-9]_int" fs=,`
2010-11-21 22:43:57 +00:00
;;
ldb)
MLIST=`g.mlist type=vect pattern="cs_*_int" fs=,`
2010-11-21 22:43:57 +00:00
;;
esac
v.patch input=${MLIST} output=${PATCHMAP}_patched
2010-11-21 22:43:57 +00:00
# EOF