[GRASS-SVN] r51134 - grass/branches/releasebranch_6_4/general/g.version

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Mar 21 17:19:52 EDT 2012


Author: martinl
Date: 2012-03-21 14:19:52 -0700 (Wed, 21 Mar 2012)
New Revision: 51134

Modified:
   grass/branches/releasebranch_6_4/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
       (merge r51046 from devbr6)


Modified: grass/branches/releasebranch_6_4/general/g.version/main.c
===================================================================
--- grass/branches/releasebranch_6_4/general/g.version/main.c	2012-03-21 21:13:05 UTC (rev 51133)
+++ grass/branches/releasebranch_6_4/general/g.version/main.c	2012-03-21 21:19:52 UTC (rev 51134)
@@ -56,7 +56,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 (argc > 1 && G_parser(argc, argv))
 	exit(EXIT_FAILURE);
@@ -68,9 +68,9 @@
 	fprintf(stdout, "date=%s\n", GRASS_VERSION_DATE);
     }
     else {
-        fprintf(stdout, "GRASS %s%s (%s) %s\n",
-		GRASS_VERSION_NUMBER, GRASS_VERSION_SVN,
-		GRASS_VERSION_DATE, GRASS_VERSION_UPDATE_PKG);
+        fprintf(stdout, "GRASS %s (%s) %s\n",
+		GRASS_VERSION_NUMBER, GRASS_VERSION_DATE,
+		GRASS_VERSION_UPDATE_PKG);
     }
 
     if (copyright->answer) {



More information about the grass-commit mailing list