[GRASS-SVN] r30506 - in grass/trunk/scripts: m.proj v.in.garmin
v.in.gpsbabel
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Mar 9 04:33:28 EDT 2008
Author: hamish
Date: 2008-03-09 04:33:28 -0400 (Sun, 09 Mar 2008)
New Revision: 30506
Modified:
grass/trunk/scripts/m.proj/m.proj
grass/trunk/scripts/v.in.garmin/v.in.garmin
grass/trunk/scripts/v.in.gpsbabel/v.in.gpsbabel
Log:
fix literal use of * in regex
Modified: grass/trunk/scripts/m.proj/m.proj
===================================================================
--- grass/trunk/scripts/m.proj/m.proj 2008-03-09 08:28:14 UTC (rev 30505)
+++ grass/trunk/scripts/m.proj/m.proj 2008-03-09 08:33:28 UTC (rev 30506)
@@ -234,7 +234,7 @@
EXITCODE=$?
#### check if transform REALLY worked (e.g. bogus output if grid file not found)
- if [ -n "`head -n 1 "$outfile" | grep '^*'`" ] ; then
+ if [ -n "`head -n 1 "$outfile" | grep '^\*'`" ] ; then
EXITCODE=1
fi
fi
Modified: grass/trunk/scripts/v.in.garmin/v.in.garmin
===================================================================
--- grass/trunk/scripts/v.in.garmin/v.in.garmin 2008-03-09 08:28:14 UTC (rev 30505)
+++ grass/trunk/scripts/v.in.garmin/v.in.garmin 2008-03-09 08:33:28 UTC (rev 30506)
@@ -451,7 +451,7 @@
cs2cs -f %.7f $IN_PROJ +to $OUT_PROJ < "${TMP}.base" > "${TMP}.P_base"
EXITCODE=$?
# check if transform REALLY worked (e.g. grid file not found)
- BAD_PTS="`grep -c "^*" "${TMP}.P_base"`"
+ BAD_PTS="`grep -c "^\*" "${TMP}.P_base"`"
if [ "$BAD_PTS" -gt 0 ] ; then
g.message message=""
g.message -w "$BAD_PTS point(s) failed reprojection."
@@ -659,7 +659,7 @@
cs2cs -tL -f %.7f $IN_PROJ +to $OUT_PROJ < "${TMP}.base" > "${TMP}.P_mid"
EXITCODE=$?
# check if transform REALLY worked (e.g. grid file not found)
- BAD_PTS="`grep -c "^*" "${TMP}.P_mid"`"
+ BAD_PTS="`grep -c "^\*" "${TMP}.P_mid"`"
if [ "$BAD_PTS" -gt 0 ] ; then
g.message message=""
g.message -w "$BAD_PTS vertices failed reprojection."
Modified: grass/trunk/scripts/v.in.gpsbabel/v.in.gpsbabel
===================================================================
--- grass/trunk/scripts/v.in.gpsbabel/v.in.gpsbabel 2008-03-09 08:28:14 UTC (rev 30505)
+++ grass/trunk/scripts/v.in.gpsbabel/v.in.gpsbabel 2008-03-09 08:33:28 UTC (rev 30506)
@@ -311,7 +311,7 @@
cs2cs -f %.7f $IN_PROJ +to $OUT_PROJ < "${TMP}.base" > "${TMP}.P_base"
EXITCODE=$?
# check if transform REALLY worked (e.g. when the grid file is not found)
- BAD_PTS="`grep -c "^*" "${TMP}.P_base"`"
+ BAD_PTS="`grep -c "^\*" "${TMP}.P_base"`"
if [ "$BAD_PTS" -gt 0 ] ; then
g.message message=""
g.message -w "$BAD_PTS point(s) failed reprojection."
@@ -567,7 +567,7 @@
cs2cs -tL -f %.7f $IN_PROJ +to $OUT_PROJ < "${TMP}.base" > "${TMP}.P_mid"
EXITCODE=$?
# check if transform REALLY worked (e.g. grid file not found)
- BAD_PTS="`grep -c "^*" "${TMP}.P_mid"`"
+ BAD_PTS="`grep -c "^\*" "${TMP}.P_mid"`"
if [ "$BAD_PTS" -gt 0 ] ; then
g.message message=""
g.message -w "$BAD_PTS vertices failed reprojection."
More information about the grass-commit
mailing list