[GRASS-dev] [GRASS GIS] #53: init.sh: cleanup session $tmp on exit and require -c to create mapset from the command line

GRASS GIS trac at osgeo.org
Sat Feb 16 21:37:56 EST 2008


#53: init.sh: cleanup session $tmp on exit and require -c to create mapset from
the command line
---------------------+------------------------------------------------------
 Reporter:  hamish   |       Owner:  grass-dev at lists.osgeo.org
     Type:  task     |      Status:  new                      
 Priority:  minor    |   Milestone:  6.4.0                    
Component:  default  |     Version:  unspecified              
 Keywords:           |  
---------------------+------------------------------------------------------
 Hi,

 the attached patch does two things:

  * If you exit GRASS in an abnormal way (even from the startup GUI "Exit"
 button) it left behind old dirs in /tmp. This fixes that.

  * In 6.3 if you start grass from the command line with the path to the
 mapset as a parameter it will create a new mapset for you if it doesn't
 exist (after checking that the location is valid). This patch adds a -c
 flag to the grass63 startup script for that case, to avoid the silent
 success of 'grass63 /path/to/typo' bugs.

 Users who currently rely on this feature in batch grass scripts can set
  export CREATE_NEW=1
 before starting their script to mimic the old way.

 Posting this patch to the tracker instead of applying it directly in SVN
 to get input from anyone who uses this style of automatic mapset creation
 in scripts.


 this should not have any bearing on trac bug #7 (which I still hope to
 spend some time on at some point).


 Hamish

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/53>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/


More information about the grass-dev mailing list