Partially fix "make framework-pkg"
[ghc-hetmet.git] / distrib / MacOS / installer-scripts / relocate
1 #!/bin/sh
2
3 # Post install script that relocates the GHC installation to a /usr tree rooted
4 # GHC framework's versioned contents folder.
5
6 INSTALL_DIR=`pwd`
7 CONTENTS_FOLDER_PATH=GHC.framework/Versions/Current
8
9 cd ${CONTENTS_FOLDER_PATH}/ghc; \
10   ./configure --prefix=${INSTALL_DIR}/${CONTENTS_FOLDER_PATH}/usr
11 cd ${CONTENTS_FOLDER_PATH}/ghc; \
12   make install
13
14 # TODO: remove the binary dist tree