[GRASS-SVN] r30630 - in grass/trunk/raster: r.in.ascii r.in.bin
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 19 03:13:14 EDT 2008
Author: hamish
Date: 2008-03-19 03:13:13 -0400 (Wed, 19 Mar 2008)
New Revision: 30630
Modified:
grass/trunk/raster/r.in.ascii/main.c
grass/trunk/raster/r.in.bin/main.c
Log:
write command history
Modified: grass/trunk/raster/r.in.ascii/main.c
===================================================================
--- grass/trunk/raster/r.in.ascii/main.c 2008-03-19 06:55:50 UTC (rev 30629)
+++ grass/trunk/raster/r.in.ascii/main.c 2008-03-19 07:13:13 UTC (rev 30630)
@@ -42,6 +42,7 @@
FILE *fd, *ft;
int cf,direction,sz;
struct Cell_head cellhd;
+ struct History history;
void *rast, *rast_ptr;
int row, col;
int nrows, ncols;
@@ -264,11 +265,16 @@
unlink(temp);
G_close_cell (cf);
+
if (title)
G_put_cell_title (output, title);
- G_done_msg ("");
+ G_short_history(output, "raster", &history);
+ G_command_history(&history);
+ G_write_history(output, &history);
+ G_done_msg(" ");
+
exit(EXIT_SUCCESS);
}
Modified: grass/trunk/raster/r.in.bin/main.c
===================================================================
--- grass/trunk/raster/r.in.bin/main.c 2008-03-19 06:55:50 UTC (rev 30629)
+++ grass/trunk/raster/r.in.bin/main.c 2008-03-19 07:13:13 UTC (rev 30630)
@@ -67,6 +67,7 @@
FILE *fd;
int cf;
struct Cell_head cellhd;
+ struct History history;
CELL *cell;
FCELL *fcell;
DCELL *dcell;
@@ -534,10 +535,17 @@
G_percent(row + 1, nrows, 2);
}
+
G_debug (1,"Creating support files for %s", output);
G_close_cell (cf);
+
if (title)
G_put_cell_title (output, title);
+ G_short_history(output, "raster", &history);
+ G_command_history(&history);
+ G_write_history(output, &history);
+
+
exit(EXIT_SUCCESS);
}
More information about the grass-commit
mailing list