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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 8 20:07:18 EST 2009


Author: kyngchaos
Date: 2009-12-08 20:07:17 -0500 (Tue, 08 Dec 2009)
New Revision: 39949

Modified:
   grass/trunk/lib/init/init.sh
Log:
define GRASS_CONFIG_DIR

Modified: grass/trunk/lib/init/init.sh
===================================================================
--- grass/trunk/lib/init/init.sh	2009-12-09 00:41:56 UTC (rev 39948)
+++ grass/trunk/lib/init/init.sh	2009-12-09 01:07:17 UTC (rev 39949)
@@ -65,6 +65,12 @@
 GIS_LOCK=$$
 export GIS_LOCK
 
+# Set the config subdir
+if [ ! "$GRASS_CONFIG_DIR" ] ; then
+	GRASS_CONFIG_DIR=@GRASS_CONFIG_DIR@
+	export $GRASS_CONFIG_DIR
+fi
+
 # Set the global grassrc file
 if [ -n "$GRASS_BATCH_JOB" ] ; then
 	GISRCRC="$HOME/$GRASS_CONFIG_DIR/rc.`uname -n`"



More information about the grass-commit mailing list