X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=distrib%2FMacOS%2Finstaller-scripts%2Fcreate-links;fp=distrib%2FMacOS%2Finstaller-scripts%2Fcreate-links;h=7102f1261ec14215738b045e40664e8f21259443;hp=bbe9fa683f28ff0778b05873b788d78f4394d47c;hb=b78367803c357d76b4538ea92414b3735de94740;hpb=160cec311bcb566640023124a97ca1d5a1b61a0d diff --git a/distrib/MacOS/installer-scripts/create-links b/distrib/MacOS/installer-scripts/create-links index bbe9fa6..7102f12 100644 --- a/distrib/MacOS/installer-scripts/create-links +++ b/distrib/MacOS/installer-scripts/create-links @@ -1,15 +1,25 @@ #!/bin/sh # GHC framework post-install script -# * Add links to all executables into standard bin/ directory +# * 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 INSTALL_DEST=$2 INSTALL_BASE=$3 if [ ${INSTALL_BASE} = / ]; then - INSTALL_BIN=/usr/bin/ -else - INSTALL_BIN=${INSTALL_BASE}/bin/ + INSTALL_BASE=/usr fi + +INSTALL_BIN=${INSTALL_BASE}/bin mkdir -p ${INSTALL_BIN} -ln -sf ${INSTALL_DEST}/GHC.framework/Versions/Current/usr/bin/* ${INSTALL_BIN} +ln -sf ${INSTALL_DEST}/GHC.framework/Versions/Current/usr/bin/* ${INSTALL_BIN}/ + +INSTALL_MAN1=${INSTALL_BASE}/share/man/man1 +INSTALL_HTML=${INSTALL_BASE}/share/doc +mkdir -p ${INSTALL_MAN1} +ln -sf ${INSTALL_DEST}/GHC.framework/Versions/Current/usr/share/man/man1/*\ + ${INSTALL_MAN1}/ +ln -sf ${INSTALL_DEST}/GHC.framework/Versions/Current/usr/share/doc/ghc\ + ${INSTALL_HTML}/