[GRASS-SVN] r33175 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 31 05:36:07 EDT 2008


Author: neteler
Date: 2008-08-31 05:36:07 -0400 (Sun, 31 Aug 2008)
New Revision: 33175

Modified:
   grass/trunk/lib/init/init.sh
Log:
use individual GISRCRC files when in GRASS_BATCH_JOB mode

Modified: grass/trunk/lib/init/init.sh
===================================================================
--- grass/trunk/lib/init/init.sh	2008-08-31 09:33:43 UTC (rev 33174)
+++ grass/trunk/lib/init/init.sh	2008-08-31 09:36:07 UTC (rev 33175)
@@ -66,7 +66,14 @@
 export GIS_LOCK
 
 # Set the global grassrc file
-GISRCRC="$HOME/.grassrc7"
+if [ -n "$GRASS_BATCH_JOB" ] ; then
+	GISRCRC="$HOME/.grassrc7.`uname -n`"
+	if [ ! -f "$GISRCRC" ] ; then
+		GISRCRC="$HOME/.grassrc7"
+	fi
+else
+	GISRCRC="$HOME/.grassrc7"
+fi
 
 # Set PATH to GRASS bin, ETC to GRASS etc
 ETC="$GISBASE/etc"



More information about the grass-commit mailing list