[GRASS-SVN] r33637 - grass/branches/releasebranch_6_3/scripts/v.db.join

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 1 02:15:46 EDT 2008


Author: neteler
Date: 2008-10-01 02:15:41 -0400 (Wed, 01 Oct 2008)
New Revision: 33637

Modified:
   grass/branches/releasebranch_6_3/scripts/v.db.join/v.db.join
Log:
fixed some GIS_OPT_ for MS-Windows

Modified: grass/branches/releasebranch_6_3/scripts/v.db.join/v.db.join
===================================================================
--- grass/branches/releasebranch_6_3/scripts/v.db.join/v.db.join	2008-10-01 04:58:21 UTC (rev 33636)
+++ grass/branches/releasebranch_6_3/scripts/v.db.join/v.db.join	2008-10-01 06:15:41 UTC (rev 33637)
@@ -89,17 +89,17 @@
 fi
 
 v.info --quiet -c "$GIS_OPT_MAP" layer="$GIS_OPT_LAYER" | \
-   cut -d'|' -f1,2 | grep "|${GIS_OPT_column}$" 2>&1 >/dev/null
+   cut -d'|' -f1,2 | grep "|${GIS_OPT_COLUMN}$" 2>&1 >/dev/null
 
 if [ $? -ne 0 ] ; then
-    g.message -e "Column <$GIS_OPT_column> not found in table <$GIS_OPT_MAP> at layer $GIS_OPT_LAYER"
+    g.message -e "Column <$GIS_OPT_COLUMN> not found in table <$GIS_OPT_MAP> at layer $GIS_OPT_LAYER"
     exit 1
 fi
 
 # we use map DBMI settings
-COLLIST=`db.describe  -c driver="$driver" database="$database" table="$GIS_OPT_otable" | grep '^Column ' | cut -d':' -f2`
+COLLIST=`db.describe  -c driver="$driver" database="$database" table="$GIS_OPT_OTABLE" | grep '^Column ' | cut -d':' -f2`
 # heck, types may have white space
-COLTYPES=`db.describe -c driver="$driver" database="$database" table="$GIS_OPT_otable" | grep '^Column ' | cut -d':' -f3 | tr -s ' ' '_'`
+COLTYPES=`db.describe -c driver="$driver" database="$database" table="$GIS_OPT_OTABLE" | grep '^Column ' | cut -d':' -f3 | tr -s ' ' '_'`
 
 i=1
 for col in $COLLIST ; do
@@ -113,7 +113,7 @@
      fi
   fi
   echo "UPDATE $maptable SET $col=(SELECT $col
-        FROM $GIS_OPT_otable WHERE $GIS_OPT_otable.$GIS_OPT_ocolumn=$maptable.$GIS_OPT_column);" | db.execute
+        FROM $GIS_OPT_OTABLE WHERE $GIS_OPT_OTABLE.$GIS_OPT_OCOLUMN=$maptable.$GIS_OPT_COLUMN);" | db.execute
   i=`expr $i + 1`
 done
 



More information about the grass-commit mailing list