[GRASS-SVN] r45261 - grass/branches/releasebranch_6_4/scripts/v.colors

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 30 23:03:51 EST 2011


Author: hamish
Date: 2011-01-30 20:03:51 -0800 (Sun, 30 Jan 2011)
New Revision: 45261

Modified:
   grass/branches/releasebranch_6_4/scripts/v.colors/v.colors
Log:
MS Windows doesn't like fs=semicolons for some reason, so change it to something else. layer parsing needs -l flag. (merge r44633,4 from devbr6)

Modified: grass/branches/releasebranch_6_4/scripts/v.colors/v.colors
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.colors/v.colors	2011-01-31 03:52:07 UTC (rev 45260)
+++ grass/branches/releasebranch_6_4/scripts/v.colors/v.colors	2011-01-31 04:03:51 UTC (rev 45261)
@@ -206,7 +206,7 @@
 #g.message "column <$GIS_OPT_COLUMN> is type [$NCOLUMN_TYPE]"
 
 # check if GRASSRGB column exists, make it if it doesn't
-TABLE=`v.db.connect -g map="$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" fs=";" | grep "^$GIS_OPT_LAYER;" | cut -f2 -d';'`
+TABLE=`v.db.connect -gl map="$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" fs="|" | cut -f2 -d'|'`
 COLUMN_TYPE=`v.info -c map="$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" --quiet | grep -i "|$GIS_OPT_RGB_COLUMN$" | cut -f1 -d'|'`
 if [ -z "$COLUMN_TYPE" ] ; then
     # RGB Column not found, create it



More information about the grass-commit mailing list