[GRASS-SVN] r51046 - grass/branches/develbranch_6/general/g.version

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 12 07:00:32 EDT 2012


Author: martinl
Date: 2012-03-12 04:00:32 -0700 (Mon, 12 Mar 2012)
New Revision: 51046

Modified:
   grass/branches/develbranch_6/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 r51045 from trunk)


Modified: grass/branches/develbranch_6/general/g.version/main.c
===================================================================
--- grass/branches/develbranch_6/general/g.version/main.c	2012-03-12 10:55:03 UTC (rev 51045)
+++ grass/branches/develbranch_6/general/g.version/main.c	2012-03-12 11:00:32 UTC (rev 51046)
@@ -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