[GRASS-SVN] r46314 - grass/branches/releasebranch_6_4

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 15 16:55:55 EDT 2011


Author: neteler
Date: 2011-05-15 13:55:55 -0700 (Sun, 15 May 2011)
New Revision: 46314

Modified:
   grass/branches/releasebranch_6_4/binaryInstall.src
Log:
attempt to fix bug #620

Modified: grass/branches/releasebranch_6_4/binaryInstall.src
===================================================================
--- grass/branches/releasebranch_6_4/binaryInstall.src	2011-05-15 20:08:45 UTC (rev 46313)
+++ grass/branches/releasebranch_6_4/binaryInstall.src	2011-05-15 20:55:55 UTC (rev 46314)
@@ -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