[GRASS-SVN] r48389 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 20 17:58:22 EDT 2011
Author: martinl
Date: 2011-09-20 14:58:22 -0700 (Tue, 20 Sep 2011)
New Revision: 48389
Modified:
grass/trunk/lib/gis/Makefile
grass/trunk/lib/gis/parser_script.c
Log:
libgis: G__script(), respect current year in the script-like output
Modified: grass/trunk/lib/gis/Makefile
===================================================================
--- grass/trunk/lib/gis/Makefile 2011-09-20 20:52:57 UTC (rev 48388)
+++ grass/trunk/lib/gis/Makefile 2011-09-20 21:58:22 UTC (rev 48389)
@@ -3,6 +3,7 @@
LIB = GIS
EXTRA_INC = $(ZLIBINCPATH) $(PTHREADINCPATH) $(REGEXINCPATH)
+EXTRA_CFLAGS = -DGRASS_VERSION_DATE=\"'$(GRASS_VERSION_DATE)'\"
DATASRC = ellipse.table datum.table datumtransform.table FIPS.code state27 state83 projections
Modified: grass/trunk/lib/gis/parser_script.c
===================================================================
--- grass/trunk/lib/gis/parser_script.c 2011-09-20 20:52:57 UTC (rev 48388)
+++ grass/trunk/lib/gis/parser_script.c 2011-09-20 21:58:22 UTC (rev 48389)
@@ -1,16 +1,16 @@
/*!
- * \file gis/parser_script.c
- *
- * \brief GIS Library - Argument parsing functions (script)
- *
- * (C) 2001-2009 by the GRASS Development Team
- *
- * This program is free software under the GNU General Public License
- * (>=v2). Read the file COPYING that comes with GRASS for details.
- *
- * \author Original author CERL
- * \author Soeren Gebbert added Dec. 2009 WPS process_description document
- */
+ \file lib/gis/parser_script.c
+
+ \brief GIS Library - Argument parsing functions (script)
+
+ (C) 2001-2009, 2011 by the GRASS Development Team
+
+ This program is free software under the GNU General Public License
+ (>=v2). Read the file COPYING that comes with GRASS for details.
+
+ \author Original author CERL
+ \author Soeren Gebbert added Dec. 2009 WPS process_description document
+*/
#include <stdio.h>
@@ -18,6 +18,9 @@
#include "parser_local_proto.h"
+/*!
+ \brief Generate script-like output
+*/
void G__script(void)
{
FILE *fp = stdout;
@@ -29,8 +32,8 @@
fprintf(fp, "# MODULE: %s_wrapper\n", G_program_name());
fprintf(fp, "# AUTHOR(S): %s\n", G_whoami());
fprintf(fp, "# PURPOSE: \n");
- fprintf(fp, "# COPYRIGHT: (C) 2009 by %s, and The GRASS Development Team\n",
- G_whoami());
+ fprintf(fp, "# COPYRIGHT: (C) %s by %s, and The GRASS Development Team\n",
+ GRASS_VERSION_DATE, G_whoami());
fprintf(fp, "#\n");
fprintf(fp,
"# This program is free software; you can redistribute it and/or modify\n");
More information about the grass-commit
mailing list