Procházet zdrojové kódy

define GRASS_CONFIG_DIR

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39949 15284696-431f-4ddb-bdfa-cd5b030d7da7
William Kyngesburye před 15 roky
rodič
revize
b11b6a1eee
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      lib/init/init.sh

+ 6 - 0
lib/init/init.sh

@@ -65,6 +65,12 @@ esac
 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`"