[GRASS-SVN] r40111 - grass/trunk/general/g.version

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 22 09:18:15 EST 2009


Author: martinl
Date: 2009-12-22 09:18:14 -0500 (Tue, 22 Dec 2009)
New Revision: 40111

Modified:
   grass/trunk/general/g.version/main.c
Log:
g.version: print svn revision by default


Modified: grass/trunk/general/g.version/main.c
===================================================================
--- grass/trunk/general/g.version/main.c	2009-12-22 11:11:10 UTC (rev 40110)
+++ grass/trunk/general/g.version/main.c	2009-12-22 14:18:14 UTC (rev 40111)
@@ -59,15 +59,11 @@
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
-    if (G_verbose() > G_verbose_std() && strlen(GRASS_VERSION_SVN) > 0) {
-	fprintf(stdout, "GRASS %s.%s (%s)\n",
+    if (G_verbose() >= G_verbose_std()) {
+	fprintf(stdout, "GRASS %s%s (%s)\n",
 		GRASS_VERSION_NUMBER, GRASS_VERSION_SVN,
 		GRASS_VERSION_DATE);
     }
-    else if (G_verbose() < G_verbose_std()) {
-	fprintf(stdout, "GRASS %s\n",
-		GRASS_VERSION_NUMBER);
-    }
     else {
 	fprintf(stdout, "GRASS %s (%s) %s\n",
 		GRASS_VERSION_NUMBER, GRASS_VERSION_DATE,



More information about the grass-commit mailing list