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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 6 16:32:08 EST 2011


Author: hamish
Date: 2011-11-06 13:32:08 -0800 (Sun, 06 Nov 2011)
New Revision: 49124

Modified:
   grass/branches/develbranch_6/lib/init/init.sh
Log:
clean up GRASS_ADDON_PATH logic & convert echo to a comment. executables
are already symlinked into the main GRASS_ADDON_PATH dir; bin/ and script/
may go away soon in gr6; please don't propagate misuse of GRASS_ADDON_PATH
as an ALT_GISBASE.


Modified: grass/branches/develbranch_6/lib/init/init.sh
===================================================================
--- grass/branches/develbranch_6/lib/init/init.sh	2011-11-06 21:22:05 UTC (rev 49123)
+++ grass/branches/develbranch_6/lib/init/init.sh	2011-11-06 21:32:08 UTC (rev 49124)
@@ -256,10 +256,10 @@
 	LCL=`echo "$LANG" | sed 's/\(..\)\(.*\)/\1/'`
 fi
 
+# if it doesn't exist set it to something so that g.extension's default is reasonable
 if [ -z "$GRASS_ADDON_PATH" ] ; then
-    GRASS_ADDON_PATH="$HOME/.grass6/addons/bin:$HOME/.grass6/addons/scripts"
+    GRASS_ADDON_PATH="$HOME/.grass6/addons"
     export GRASS_ADDON_PATH
-    echo "GRASS_ADDON_PATH undefined, using '$GRASS_ADDON_PATH'"
 fi
 PATH="$GISBASE/bin:$GISBASE/scripts:$GRASS_ADDON_PATH:$PATH"
 export PATH



More information about the grass-commit mailing list