[GRASS-SVN] r34886 - grass/branches/develbranch_6/scripts/v.to.3d

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 14 16:29:09 EST 2008


Author: neteler
Date: 2008-12-14 16:29:09 -0500 (Sun, 14 Dec 2008)
New Revision: 34886

Modified:
   grass/branches/develbranch_6/scripts/v.to.3d/v.to.3d
Log:
write cmd history

Modified: grass/branches/develbranch_6/scripts/v.to.3d/v.to.3d
===================================================================
--- grass/branches/develbranch_6/scripts/v.to.3d/v.to.3d	2008-12-14 21:20:34 UTC (rev 34885)
+++ grass/branches/develbranch_6/scripts/v.to.3d/v.to.3d	2008-12-14 21:29:09 UTC (rev 34886)
@@ -76,7 +76,12 @@
 
 # save command line
 if [ "$1" != "@ARGS_PARSED@" ] ; then
-  exec g.parser "$0" "$@"
+    CMDLINE="`basename $0`"
+    for arg in "$@" ; do
+        CMDLINE="$CMDLINE \"$arg\""
+    done
+    export CMDLINE
+    exec g.parser "$0" "$@"
 fi
 
 map3d=` v.info map="$GIS_OPT_INPUT" -t | grep map3d | cut -d'=' -f2`
@@ -114,4 +119,7 @@
    fi
 fi
 
+# write cmd history:
+v.support ${GIS_OPT_OUTPUT} cmdhist="${CMDLINE}"
+
 exit 0



More information about the grass-commit mailing list