X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=distrib%2FMacOS%2Finstaller-scripts%2Fcreate-links;fp=distrib%2FMacOS%2Finstaller-scripts%2Fcreate-links;h=0000000000000000000000000000000000000000;hb=7594ea1867c3dd08696a25c81aca2e2e84f7a25a;hp=58bed8943b406e4c9204cb35fdc38380c42e45b7;hpb=d1fecad717e9cdf2da36147901acf0d7bbc9828c;p=ghc-hetmet.git diff --git a/distrib/MacOS/installer-scripts/create-links b/distrib/MacOS/installer-scripts/create-links deleted file mode 100644 index 58bed89..0000000 --- a/distrib/MacOS/installer-scripts/create-links +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -# GHC framework post-install script -# * Add links to all executables into the standard bin/ directory -# * Add link to the man page into the standard man/man1/ directory -# * Add link to the HTML docs into the standard share/doc/ directory - -# The binary links are careful not to use Current, because that will be -# rebound to the current version on every reinstall. - -# It probably won't ever happen, but this should work correctly if the install -# destination has a space on it. - -# See apple "Install Operations" documentation for how this script is called. - -INSTALL_DEST="$2" -INSTALL_BASE="$3" - -if [ "$INSTALL_BASE" = / ]; then - INSTALL_BASE=/usr -fi - -ProjectVersionInt=$(readlink "$INSTALL_DEST/GHC.framework/Versions/Current") -GHC_BASE="$INSTALL_DEST/GHC.framework/Versions/$ProjectVersionInt" - -INSTALL_BIN="$INSTALL_BASE/bin" -mkdir -p "$INSTALL_BIN" -if [ -d "$GHC_BASE/usr/bin" ]; then - ln -sf "$GHC_BASE"/usr/bin/* "$INSTALL_BIN/" -fi - -INSTALL_MAN1="$INSTALL_BASE"/share/man/man1 -INSTALL_HTML="$INSTALL_BASE"/share/doc -mkdir -p "$INSTALL_MAN1" -if [ -d "$GHC_BASE"/usr/share/man/man1 ]; then - ln -sf "$GHC_BASE"/usr/share/man/man1/* "$INSTALL_MAN1/" - ln -sf "$GHC_BASE"/usr/share/doc/ghc.$ProjectVersionInt "$INSTALL_HTML/" -fi