~ubuntu-branches/ubuntu/intrepid/grass/intrepid

« back to all changes in this revision

Viewing changes to scripts/v.dissolve/v.dissolve

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2008-04-06 17:08:21 UTC
  • mfrom: (1.1.5 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080406170821-7l3d3ulh4g8crwcs
Tags: 6.2.3-2.1
* NMU during credativ BSP 2008
* using patch from Moritz Muehlenhoff <jmm@inutil.org> to fix
  FTBFS with GCC 4.3: missing #includes
  (closes: #461673)

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
cleanup()
68
68
{
69
 
 \rm -f "$GIS_OPT_INPUT"_${TMP}
 
69
   g.remove vect="$GIS_OPT_OUTPUT"_${TMP}
70
70
}
71
71
 
72
72
# what to do in case of user break:
73
73
exitprocedure()
74
74
{
75
 
 echo "User break!"
76
 
 cleanup
77
 
 exit 1
 
75
   echo "User break!" 1>&2
 
76
   cleanup
 
77
   exit 1
78
78
}
79
79
# shell check for user break (signal list: trap -l)
80
80
trap "exitprocedure" 2 3 15
100
100
             column="$GIS_OPT_COLUMN"
101
101
   v.extract -d input="$GIS_OPT_OUTPUT"_${TMP} output="$GIS_OPT_OUTPUT" type=area \
102
102
             layer="$GIS_OPT_LAYER"
 
103
   cleanup
 
104
 
103
105
fi
104
106
 
105
 
cleanup
106
 
 
107
 
exit 0
108
 
 
 
107
exit