[GRASS-SVN] r64361 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 30 04:03:53 PST 2015


Author: neteler
Date: 2015-01-30 04:03:53 -0800 (Fri, 30 Jan 2015)
New Revision: 64361

Modified:
   grass/trunk/lib/init/grass.py
   grass/trunk/lib/init/license.txt
Log:
grass.py: show version with --version; minor cosmetics

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2015-01-29 10:18:56 UTC (rev 64360)
+++ grass/trunk/lib/init/grass.py	2015-01-30 12:03:53 UTC (rev 64361)
@@ -17,7 +17,7 @@
 #               command line options for setting the GISDBASE, LOCATION,
 #               and/or MAPSET. Finally it starts GRASS with the appropriate
 #               user interface and cleans up after it is finished.
-# COPYRIGHT:    (C) 2000-2014 by the GRASS Development Team
+# COPYRIGHT:    (C) 2000-2015 by the GRASS Development Team
 #
 #               This program is free software under the GNU General
 #               Public License (>=v2). Read the file COPYING that
@@ -1016,7 +1016,7 @@
 
 
 def say_hello():
-    sys.stderr.write(_("Welcome to GRASS %s") % grass_version)
+    sys.stderr.write(_("Welcome to GRASS GIS %s") % grass_version)
     if grass_version.endswith('svn'):
         try:
             filerev = open(os.path.join(gisbase, 'etc', 'VERSIONNUMBER'))
@@ -1035,7 +1035,7 @@
 %-41s%s (%s)
 %-41sg.manual -i
 %-41sg.version -c
-""" % (_("GRASS homepage:"),
+""" % (_("GRASS GIS homepage:"),
        _("This version running through:"),
        shellname, os.getenv('SHELL'),
        _("Help is available with the command:"),
@@ -1070,7 +1070,7 @@
 
     f.write("set prompt = '\\\n")
     f.write("Mapset <%s> in Location <%s> \\\n" % (mapset, location_name))
-    f.write("GRASS %s > '\n" % grass_version)
+    f.write("GRASS GIS %s > '\n" % grass_version)
     f.write("set BOGUS=``;unset BOGUS\n")
 
     path = os.path.join(userhome, ".grass.cshrc") # left for backward compatibility
@@ -1261,6 +1261,7 @@
     for i in sys.argv[1:]:
         # Check if the user asked for the version
         if i in ["-v", "--version"]:
+            message("GRASS GIS %s" % grass_version)
             message('\n' + readfile(gfile("etc", "license")))
             sys.exit()
         # Check if the user asked for help

Modified: grass/trunk/lib/init/license.txt
===================================================================
--- grass/trunk/lib/init/license.txt	2015-01-29 10:18:56 UTC (rev 64360)
+++ grass/trunk/lib/init/license.txt	2015-01-30 12:03:53 UTC (rev 64361)
@@ -2,7 +2,7 @@
 1999-GRASS_VERSION_DATE by the GRASS Development Team, and licensed under terms of the
 GNU General Public License (GPL) version >=2.
  
-This GRASS GRASS_VERSION_NUMBER release is coordinated and produced by
+This GRASS GIS GRASS_VERSION_NUMBER release is coordinated and produced by
 the GRASS Development Team with contributions from all over the world.
 
 This program is distributed in the hope that it will be useful, but



More information about the grass-commit mailing list