[GRASS-SVN] r51045 - grass/trunk/general/g.version
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 12 06:55:03 EDT 2012
Author: martinl
Date: 2012-03-12 03:55:03 -0700 (Mon, 12 Mar 2012)
New Revision: 51045
Modified:
grass/trunk/general/g.version/main.c
Log:
g.version: don't print SVN rev in basic output <version><revision> (<date>) is quite unreadable, SVN rev is printed in shell script output as extra info
Modified: grass/trunk/general/g.version/main.c
===================================================================
--- grass/trunk/general/g.version/main.c 2012-03-12 10:46:45 UTC (rev 51044)
+++ grass/trunk/general/g.version/main.c 2012-03-12 10:55:03 UTC (rev 51045)
@@ -59,7 +59,7 @@
shell = G_define_flag();
shell->key = 'g';
- shell->description = _("Print info in shell script style");
+ shell->description = _("Print info in shell script style (including SVN revision number)");
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
@@ -70,9 +70,8 @@
fprintf(stdout, "date=%s\n", GRASS_VERSION_DATE);
}
else {
- fprintf(stdout, "GRASS %s%s (%s)\n",
- GRASS_VERSION_NUMBER, GRASS_VERSION_SVN,
- GRASS_VERSION_DATE);
+ fprintf(stdout, "GRASS %s (%s)\n",
+ GRASS_VERSION_NUMBER, GRASS_VERSION_DATE);
}
if (copyright->answer) {
More information about the grass-commit
mailing list