[GRASS-SVN] r55197 - grass/branches/develbranch_6/scripts/d.out.png

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 25 11:32:10 PST 2013


Author: hamish
Date: 2013-02-25 11:32:09 -0800 (Mon, 25 Feb 2013)
New Revision: 55197

Modified:
   grass/branches/develbranch_6/scripts/d.out.png/d.out.png
Log:
GRASS_WIDTH etc are enviro vars not gisenv vars, no need to reset them at the end as they're discarded upon script exit

Modified: grass/branches/develbranch_6/scripts/d.out.png/d.out.png
===================================================================
--- grass/branches/develbranch_6/scripts/d.out.png/d.out.png	2013-02-25 19:23:28 UTC (rev 55196)
+++ grass/branches/develbranch_6/scripts/d.out.png/d.out.png	2013-02-25 19:32:09 UTC (rev 55197)
@@ -70,9 +70,6 @@
 
 
 # Save old settings
-old_GRASSW=`eval g.gisenv get=GRASS_WIDTH`
-old_GRASSH=`eval g.gisenv get=GRASS_HEIGHT`
-old_TRUECOLOR=`eval g.gisenv get=GRASS_TRUECOLOR`
 curr_mon=`d.mon -p | awk '{printf "%s", $4}'`
 
 #setting variables (get rid of extra png)
@@ -120,17 +117,8 @@
 d.mon stop=PNG
 
 #returning old settings
-d.mon select=$curr_mon
-GRASS_WIDTH=$old_GRASSW
-export GRASS_WIDTH
-GRASS_HEIGHT=$old_GRASSH
-export GRASS_HEIGHT
-GRASS_TRUECOLOR=$old_TRUECOLOR
-export GRASS_TRUECOLOR
-GRASS_PNGFILE=map.png
-export GRASS_PNGFILE
+d.mon select="$curr_mon"
 
 g.message "Done. (writing the file may take a small amount of time)"
-
 exit 0
 



More information about the grass-commit mailing list