[GRASS-SVN] r37205 - grass/branches/develbranch_6/scripts/m.proj

svn_grass at osgeo.org svn_grass at osgeo.org
Wed May 13 06:31:00 EDT 2009


Author: hamish
Date: 2009-05-13 06:31:00 -0400 (Wed, 13 May 2009)
New Revision: 37205

Modified:
   grass/branches/develbranch_6/scripts/m.proj/m.proj
Log:
obey GRASS_VERBOSE

Modified: grass/branches/develbranch_6/scripts/m.proj/m.proj
===================================================================
--- grass/branches/develbranch_6/scripts/m.proj/m.proj	2009-05-13 10:28:36 UTC (rev 37204)
+++ grass/branches/develbranch_6/scripts/m.proj/m.proj	2009-05-13 10:31:00 UTC (rev 37205)
@@ -99,6 +99,13 @@
 LC_NUMERIC=C
 export LC_NUMERIC
 
+# turn verbose mode on if requested either way
+if [ "$GIS_FLAG_V" -eq 1 ] ; then
+   g.message -w "The verbosity option is superseded. Use --verbose instead"
+   GRASS_VERBOSE=3
+   export GRASS_VERBOSE
+fi
+
 #### check for cs2cs
 if [ ! -x "`which cs2cs`" ] ; then
    g.message -e "cs2cs program not found, install PROJ.4 first"
@@ -143,9 +150,7 @@
 unset IN_PROJ
 if [ $GIS_FLAG_I -eq 1 ] ; then
    IN_PROJ="+proj=longlat +datum=WGS84"
-   if [ $GIS_FLAG_V -eq 1 ] ; then
-     g.message "Assuming LL WGS84 as input, current projection as output."
-   fi
+   g.message -v "Assuming LL WGS84 as input, current projection as output."
 fi
 if [ $GIS_FLAG_O -eq 1 ] ; then
    IN_PROJ="`g.proj -jf`"
@@ -162,9 +167,7 @@
 unset OUT_PROJ
 if [ $GIS_FLAG_O -eq 1 ] ; then
    OUT_PROJ="+proj=longlat +datum=WGS84"
-   if [ $GIS_FLAG_V -eq 1 ] ; then
-     g.message "Assuming current projection as input, LL WGS84 as output."
-   fi
+   g.message -v "Assuming current projection as input, LL WGS84 as output."
 fi
 if [ $GIS_FLAG_I -eq 1 ] ; then
    OUT_PROJ="`g.proj -jf`"
@@ -219,10 +222,10 @@
 outfile="$GIS_OPT_OUTPUT"
 
 if [ -n "$infile" ] ; then
-    g.message message="input file=[$infile]"
+    g.message -v message="input file=[$infile]"
 fi
 if [ -n "$outfile" ] ; then
-    g.message message="output file=[$outfile]" 
+    g.message -v message="output file=[$outfile]" 
 fi
 
 #### setup output style



More information about the grass-commit mailing list