projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f9302da
)
Add more quoting to distrib/MacOS/installer-scripts/create-links
author
Ian Lynagh
<igloo@earth.li>
Sun, 17 Oct 2010 11:26:48 +0000
(11:26 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sun, 17 Oct 2010 11:26:48 +0000
(11:26 +0000)
distrib/MacOS/installer-scripts/create-links
patch
|
blob
|
history
diff --git
a/distrib/MacOS/installer-scripts/create-links
b/distrib/MacOS/installer-scripts/create-links
index
55a356c
..
58bed89
100644
(file)
--- a/
distrib/MacOS/installer-scripts/create-links
+++ b/
distrib/MacOS/installer-scripts/create-links
@@
-13,17
+13,17
@@
# See apple "Install Operations" documentation for how this script is called.
# See apple "Install Operations" documentation for how this script is called.
-INSTALL_DEST=$2
-INSTALL_BASE=$3
+INSTALL_DEST="$2"
+INSTALL_BASE="$3"
if [ "$INSTALL_BASE" = / ]; then
INSTALL_BASE=/usr
fi
ProjectVersionInt=$(readlink "$INSTALL_DEST/GHC.framework/Versions/Current")
if [ "$INSTALL_BASE" = / ]; then
INSTALL_BASE=/usr
fi
ProjectVersionInt=$(readlink "$INSTALL_DEST/GHC.framework/Versions/Current")
-GHC_BASE=$INSTALL_DEST/GHC.framework/Versions/$ProjectVersionInt
+GHC_BASE="$INSTALL_DEST/GHC.framework/Versions/$ProjectVersionInt"
-INSTALL_BIN=$INSTALL_BASE/bin
+INSTALL_BIN="$INSTALL_BASE/bin"
mkdir -p "$INSTALL_BIN"
if [ -d "$GHC_BASE/usr/bin" ]; then
ln -sf "$GHC_BASE"/usr/bin/* "$INSTALL_BIN/"
mkdir -p "$INSTALL_BIN"
if [ -d "$GHC_BASE/usr/bin" ]; then
ln -sf "$GHC_BASE"/usr/bin/* "$INSTALL_BIN/"