[GRASS-SVN] r34477 - grass/branches/develbranch_6/raster/r.texture

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 24 08:06:31 EST 2008


Author: neteler
Date: 2008-11-24 08:06:31 -0500 (Mon, 24 Nov 2008)
New Revision: 34477

Modified:
   grass/branches/develbranch_6/raster/r.texture/main.c
Log:
write cmd history (merge from trunk, r34476)

Modified: grass/branches/develbranch_6/raster/r.texture/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.texture/main.c	2008-11-24 13:06:14 UTC (rev 34476)
+++ grass/branches/develbranch_6/raster/r.texture/main.c	2008-11-24 13:06:31 UTC (rev 34477)
@@ -61,10 +61,13 @@
     int a, c, corr, v, idm, sa, sv, se, e, dv, de, moc1, moc2, mcc;
     RASTER_MAP_TYPE data_type, out_data_type;
     struct GModule *module;
+    char mapname[GNAME_MAX];
     struct Option *input, *output, *size_O, *dist_O;
     struct Flag *flag1, *flag2, *flag3, *flag4, *flag5,
 	*flag6, *flag7, *flag8, *flag9, *flag10, *flag11,
 	*flag12, *flag13, *flag14, *flag15;
+    struct History history;
+
     G_gisinit(argv[0]);
 
     module = G_define_module();
@@ -365,8 +368,15 @@
 				      result, row);
 
 	    G_close_cell(outfd);
-	    G_important_message(_("Calculated measure #%d <%s%s> (56 measures available)"),
-				(t_measure + 1), filename, suffixes[t_measure]);
+	    strcpy(mapname, filename);
+	    strcat(mapname, suffixes[t_measure]);
+	    G_important_message(_("Calculated measure #%d <%s> (56 measures available)"),
+				(t_measure + 1), mapname);
+
+	    G_short_history(mapname, "raster", &history);
+	    G_command_history(&history);
+	    G_write_history(mapname, &history);
+
 	}
     G_free(outrast);
     G_free(data);



More information about the grass-commit mailing list