Change how the OS X installer's create-links finds the versin number
authorIan Lynagh <igloo@earth.li>
Sun, 17 Oct 2010 12:23:52 +0000 (12:23 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 17 Oct 2010 12:23:52 +0000 (12:23 +0000)
It now gets created by configure, rather than trying to work out the
version number at runtime.

configure.ac
distrib/MacOS/installer-scripts/create-links.in [moved from distrib/MacOS/installer-scripts/create-links with 93% similarity]

index dc94cf3..b281cd8 100644 (file)
@@ -950,7 +950,7 @@ if grep '   ' compiler/ghc.cabal.in 2>&1 >/dev/null; then
    AC_MSG_ERROR([compiler/ghc.cabal.in contains tab characters; please remove them])
 fi
 
-AC_CONFIG_FILES([mk/config.mk mk/install.mk mk/project.mk compiler/ghc.cabal ghc/ghc-bin.cabal utils/runghc/runghc.cabal ghc.spec extra-gcc-opts docs/users_guide/ug-book.xml docs/users_guide/ug-ent.xml docs/index.html libraries/prologue.txt distrib/ghc.iss distrib/configure.ac])
+AC_CONFIG_FILES([mk/config.mk mk/install.mk mk/project.mk compiler/ghc.cabal ghc/ghc-bin.cabal utils/runghc/runghc.cabal ghc.spec extra-gcc-opts docs/users_guide/ug-book.xml docs/users_guide/ug-ent.xml docs/index.html libraries/prologue.txt distrib/ghc.iss distrib/configure.ac distrib/MacOS/installer-scripts/create-links])
 AC_CONFIG_COMMANDS([mk/stamp-h],[echo timestamp > mk/stamp-h])
 AC_OUTPUT
 
@@ -20,7 +20,7 @@ if [ "$INSTALL_BASE" = / ]; then
   INSTALL_BASE=/usr
 fi
 
-ProjectVersionInt=$(readlink "$INSTALL_DEST/GHC.framework/Versions/Current")
+ProjectVersionInt=@ProjectVersionInt@
 GHC_BASE="$INSTALL_DEST/GHC.framework/Versions/$ProjectVersionInt"
 
 INSTALL_BIN="$INSTALL_BASE/bin"