[GRASS-SVN] r37465 - grass/branches/develbranch_6/scripts/d.out.file

svn_grass at osgeo.org svn_grass at osgeo.org
Mon May 25 07:41:47 EDT 2009


Author: hamish
Date: 2009-05-25 07:41:46 -0400 (Mon, 25 May 2009)
New Revision: 37465

Modified:
   grass/branches/develbranch_6/scripts/d.out.file/d.out.file
Log:
respect --verbose

Modified: grass/branches/develbranch_6/scripts/d.out.file/d.out.file
===================================================================
--- grass/branches/develbranch_6/scripts/d.out.file/d.out.file	2009-05-25 11:30:47 UTC (rev 37464)
+++ grass/branches/develbranch_6/scripts/d.out.file/d.out.file	2009-05-25 11:41:46 UTC (rev 37465)
@@ -195,6 +195,12 @@
 #### set variables
 res="$GIS_OPT_RESOLUTION"
 
+if [ -z "$GRASS_VERBOSE" ] || [ "$GRASS_VERBOSE" -le 2 ] ; then
+  BEQUIET="--quiet"
+else
+  BEQUIET=""
+fi
+
 #capture current display monitor and geometry
 # identify current monitor
 currmon="`d.mon -L | grep "(selected)" | awk '{print $1}'`"
@@ -349,13 +355,13 @@
    dsave=`d.save -a`
 fi
 
-d.mon start=$GRAPHICS_DRIVER --quiet
+d.mon start=$GRAPHICS_DRIVER $BEQUIET
   # 'd.info -b' for white band removal
   BOX=`d.info -b | cut -f2 -d':'`
   # 'd.info -g' to get GeoTIFF bounds when keeping white margin bands
   eval `d.info -g`
   eval "$dsave"
-d.mon stop=$GRAPHICS_DRIVER --quiet
+d.mon stop=$GRAPHICS_DRIVER $BEQUIET
 ################################
 
 g.message "Screen export complete. (writing the file may take a small amount of time)"



More information about the grass-commit mailing list