[GRASS-SVN] r61727 - grass-addons/tools/wingrass-packager
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Aug 24 03:27:52 PDT 2014
Author: martinl
Date: 2014-08-24 03:27:52 -0700 (Sun, 24 Aug 2014)
New Revision: 61727
Modified:
grass-addons/tools/wingrass-packager/grass_addons.sh
Log:
winGRASS addons: fix bat files in G7
Modified: grass-addons/tools/wingrass-packager/grass_addons.sh
===================================================================
--- grass-addons/tools/wingrass-packager/grass_addons.sh 2014-08-24 00:07:14 UTC (rev 61726)
+++ grass-addons/tools/wingrass-packager/grass_addons.sh 2014-08-24 10:27:52 UTC (rev 61727)
@@ -36,7 +36,12 @@
fi
cd $mod
if [ -f bin/${mod}.bat ] ; then
- sed "s/GISBASE/GRASS_ADDON_PATH/" bin/${mod}.bat > tmp
+ if [ `echo $1 | sed -e 's/\(^.*\)\(.$\)/\2/'` = "6" ] ; then
+ replace_gisbase="GRASS_ADDON_PATH"
+ else
+ replace_gisbase="GRASS_ADDON_BASE"
+ fi
+ sed "s/GISBASE/$replace_gisbase/" bin/${mod}.bat > tmp
mv tmp bin/${mod}.bat
fi
# if [ `echo $1 | sed -e 's/\(^.*\)\(.$\)/\2/'` = "6" ] ; then
More information about the grass-commit
mailing list