2011/11/6 <svn_grass@osgeo.org>:
Author: hamish
Date: 2011-11-06 13:32:08 -0800 (Sun, 06 Nov 2011)
New Revision: 49124Modified:
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
I *really* do not understand this change! It goes completely against
your opinion [1]! Moreover it causes
$ echo $GRASS_ADDON_PATH
/home/martin/.grass6/addons
$ ls ~/.grass6/addons/scripts/
i.atcorr.zodh.py
$ i.atcorr.zodh.py
bash: i.atcorr.zodh.py: command not found
Martin
PS: Now I understand what was wrong during the last remote sensing course
[1] http://lists.osgeo.org/pipermail/grass-user/2011-October/062195.html
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa