瀏覽代碼

define GRASS_CONFIG_DIR

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39949 15284696-431f-4ddb-bdfa-cd5b030d7da7
William Kyngesburye 15 年之前
父節點
當前提交
b11b6a1eee
共有 1 個文件被更改,包括 6 次插入0 次删除
  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`"