[GRASS-SVN] r35327 -
grass/branches/releasebranch_6_4/scripts/v.colors
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 10 16:37:07 EST 2009
Author: neteler
Date: 2009-01-10 16:37:07 -0500 (Sat, 10 Jan 2009)
New Revision: 35327
Modified:
grass/branches/releasebranch_6_4/scripts/v.colors/v.colors
Log:
g.message bugfixed (= in string)
Modified: grass/branches/releasebranch_6_4/scripts/v.colors/v.colors
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.colors/v.colors 2009-01-10 21:37:05 UTC (rev 35326)
+++ grass/branches/releasebranch_6_4/scripts/v.colors/v.colors 2009-01-10 21:37:07 UTC (rev 35327)
@@ -242,7 +242,7 @@
MINVAL=`v.db.select map="$GIS_OPT_MAP" column="$GIS_OPT_COLUMN" layer="$GIS_OPT_LAYER" | sort -n | grep '^[-0-9]' | head -n 1`
MAXVAL=`v.db.select map="$GIS_OPT_MAP" column="$GIS_OPT_COLUMN" layer="$GIS_OPT_LAYER" | sort -n | grep '^[-0-9]' | tail -n 1`
fi
-g.message " min=[$MINVAL] max=[$MAXVAL]"
+g.message message=" min=[$MINVAL] max=[$MAXVAL]"
if [ -z "$MINVAL" ] || [ -z "$MAXVAL" ] ; then
g.message -e "Scanning data range"
exit 1
@@ -293,7 +293,7 @@
sort -n | grep '^[-0-9]' | uniq | \
r.what.color -i in="tmp_colr_$$" | sed -e 's/: /|/' | grep -v '|\*$' | \
( while read LINE ; do
- #g.message "LINE=[$LINE]"
+ #g.message message="LINE=[$LINE]"
VALUE=`echo $LINE | cut -f1 -d'|'`
COLR=`echo $LINE | cut -f2 -d'|'`
echo "UPDATE $TABLE SET $GIS_OPT_RGB_COLUMN = '$COLR' WHERE $GIS_OPT_COLUMN = $VALUE;" >> "${TMP}_vcol.sql"
More information about the grass-commit
mailing list