summaryrefslogtreecommitdiff
path: root/distrib/MacOS/installer-scripts/create-links
blob: 884007c2d6eed99a0d50d3576af4f7effd7c533f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# GHC framework post-install script
# * Add links to all executables into standard bin/ directory

INSTALL_DEST=$2
INSTALL_BASE=$3

if [ ${INSTALL_BASE} = / ]; then
  INSTALL_BIN=${INSTALL_BASE}/usr/bin/
else
  INSTALL_BIN=${INSTALL_BASE}/bin/
fi
mkdir -p ${INSTALL_BIN}
ln -sf ${INSTALL_DEST}/GHC.framework/Versions/Current/usr/bin/* ${INSTALL_BIN}