[GRASS-SVN] r33684 - grass/trunk/raster/r.grow

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 6 01:48:09 EDT 2008


Author: hamish
Date: 2008-10-06 01:48:09 -0400 (Mon, 06 Oct 2008)
New Revision: 33684

Modified:
   grass/trunk/raster/r.grow/main.c
Log:
save command line history (merge from devbr6)

Modified: grass/trunk/raster/r.grow/main.c
===================================================================
--- grass/trunk/raster/r.grow/main.c	2008-10-06 05:43:55 UTC (rev 33683)
+++ grass/trunk/raster/r.grow/main.c	2008-10-06 05:48:09 UTC (rev 33684)
@@ -105,6 +105,7 @@
     } flag;
     struct Colors colr;
     struct Categories cats;
+    struct History history;
     int verbose;
     int colrfile;
     char *in_name;
@@ -298,5 +299,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