[GRASS-SVN] r57562 - grass/branches/releasebranch_6_4/scripts/d.out.png

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 31 23:01:32 PDT 2013


Author: hamish
Date: 2013-08-31 23:01:32 -0700 (Sat, 31 Aug 2013)
New Revision: 57562

Modified:
   grass/branches/releasebranch_6_4/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 (merge r55197 from devbr6)

Modified: grass/branches/releasebranch_6_4/scripts/d.out.png/d.out.png
===================================================================
--- grass/branches/releasebranch_6_4/scripts/d.out.png/d.out.png	2013-09-01 05:53:52 UTC (rev 57561)
+++ grass/branches/releasebranch_6_4/scripts/d.out.png/d.out.png	2013-09-01 06:01:32 UTC (rev 57562)
@@ -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