[GRASS-SVN] r33174 - grass/branches/develbranch_6/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 31 05:33:43 EDT 2008


Author: neteler
Date: 2008-08-31 05:33:43 -0400 (Sun, 31 Aug 2008)
New Revision: 33174

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

Modified: grass/branches/develbranch_6/lib/init/init.sh
===================================================================
--- grass/branches/develbranch_6/lib/init/init.sh	2008-08-31 01:58:50 UTC (rev 33173)
+++ grass/branches/develbranch_6/lib/init/init.sh	2008-08-31 09:33:43 UTC (rev 33174)
@@ -159,7 +159,14 @@
 export GIS_LOCK
 
 # Set the global grassrc file
-GISRCRC="$HOME/.grassrc6"
+if [ -n "$GRASS_BATCH_JOB" ] ; then
+	GISRCRC="$HOME/.grassrc6.`uname -n`"
+	if [ ! -f "$GISRCRC" ] ; then
+		GISRCRC="$HOME/.grassrc6"
+	fi
+else
+	GISRCRC="$HOME/.grassrc6"
+fi
 
 # Set the session grassrc file
 if [ "$MINGW" ] ; then



More information about the grass-commit mailing list