~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to scripts/v.in.geonames/v.in.geonames

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
# save command line
51
51
if [ "$1" != "@ARGS_PARSED@" ] ; then
52
 
    CMDLINE="`basename $0`"
 
52
    CMDLINE=`basename "$0"`
53
53
    for arg in "$@" ; do
54
54
        CMDLINE="$CMDLINE \"$arg\""
55
55
    done
57
57
    exec g.parser "$0" "$@"
58
58
fi
59
59
 
60
 
PROG=`basename $0`
 
60
PROG=`basename "$0"`
61
61
 
62
62
#### check if we have awk
63
63
if [ ! -x "`which awk`" ] ; then
80
80
    if [ -n "$GIS_OPT_VECT" ] ; then
81
81
       FILE="$GIS_OPT_VECT"
82
82
    else
83
 
       FILE=`basename $FILEORIG .txt`
84
 
       FILE=`basename $FILE .csv`
 
83
       FILE=`basename "$FILEORIG" .txt`
 
84
       FILE=`basename "$FILE" .csv`
85
85
    fi
86
86
fi
87
87
 
157
157
 
158
158
if [ $? -eq 0 ] ; then
159
159
   # write cmd history:
160
 
   v.support $GIS_OPT_OUTPUT cmdhist="${CMDLINE}"
 
160
   v.support "$GIS_OPT_OUTPUT" cmdhist="${CMDLINE}"
161
161
   rm -f "${TMPFILE}.csv"
162
162
   exit 0
163
163
fi