Browse Source

g.version: print svn revision by default

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40111 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 years ago
parent
commit
a791d8d394
1 changed files with 2 additions and 6 deletions
  1. 2 6
      general/g.version/main.c

+ 2 - 6
general/g.version/main.c

@@ -59,15 +59,11 @@ int main(int argc, char *argv[])
     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,