[GRASS-SVN] r46315 - grass/branches/develbranch_6
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 15 16:56:53 EDT 2011
Author: neteler
Date: 2011-05-15 13:56:53 -0700 (Sun, 15 May 2011)
New Revision: 46315
Modified:
grass/branches/develbranch_6/binaryInstall.src
Log:
attempt to fix bug #620
Modified: grass/branches/develbranch_6/binaryInstall.src
===================================================================
--- grass/branches/develbranch_6/binaryInstall.src 2011-05-15 20:55:55 UTC (rev 46314)
+++ grass/branches/develbranch_6/binaryInstall.src 2011-05-15 20:56:53 UTC (rev 46315)
@@ -9,7 +9,7 @@
# GRASS binary package installation tool
# platform independent
#
-# 1999-2000 by Markus Neteler, neteler at itc.it
+# 1999-2000, 2011 by Markus Neteler, GRASS Development Team
#
##########################################################################
@@ -345,6 +345,17 @@
echo""
+# fix include/Make/Platform.make file for g.extension
+mv ${DESTDIR}/include/Make/Platform.make ${DESTDIR}/include/Make/Platform.make.orig
+cat ${DESTDIR}/include/Make/Platform.make.orig | \
+ sed "s+prefix = /usr/local+prefix = $DESTDIR+g" | \
+ sed "s+INST_DIR = $prefix/grass-$NAME_VER+INST_DIR = $prefix+g" | \
+ sed "s+^.*GRASS_HOME.*$+GRASS_HOME = $DESTDIR+" | \
+ sed "s+^.*RUN_GISBASE.*$+RUN_GISBASE = $DESTDIR+" | \
+ sed "s+^.*RUN_GISRC.*$+RUN_GISRC = +" > ${DESTDIR}/include/Make/Platform.make
+
+# rm -f ${DESTDIR}/include/Make/Platform.make.orig
+
# Print out some messages
echo "Installation finished. Start GRASS $NAME_VER with"
echo " $BINDIR/$GRASSPRG"
More information about the grass-commit
mailing list