Kaynağa Gözat

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

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51045 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 yıl önce
ebeveyn
işleme
4f16e5e225
1 değiştirilmiş dosya ile 3 ekleme ve 4 silme
  1. 3 4
      general/g.version/main.c

+ 3 - 4
general/g.version/main.c

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