[GRASS-SVN] r33683 - grass/branches/develbranch_6/raster/r.grow2

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 6 01:43:56 EDT 2008


Author: hamish
Date: 2008-10-06 01:43:55 -0400 (Mon, 06 Oct 2008)
New Revision: 33683

Modified:
   grass/branches/develbranch_6/raster/r.grow2/main.c
Log:
save command line history

Modified: grass/branches/develbranch_6/raster/r.grow2/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.grow2/main.c	2008-10-05 21:43:31 UTC (rev 33682)
+++ grass/branches/develbranch_6/raster/r.grow2/main.c	2008-10-06 05:43:55 UTC (rev 33683)
@@ -105,6 +105,7 @@
     } flag;
     struct Colors colr;
     struct Categories cats;
+    struct History history;
     int verbose;
     int colrfile;
     char *in_name;
@@ -303,5 +304,9 @@
 	if (G_write_colors(out_name, G_mapset(), &colr) == -1)
 	    G_warning(_("Error writing color file for <%s>"), out_name);
 
+    G_short_history(out_name, "raster", &history);
+    G_command_history(&history);
+    G_write_history(out_name, &history);
+
     return EXIT_SUCCESS;
 }



More information about the grass-commit mailing list