Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
d1fecad7
Commit
d1fecad7
authored
Oct 17, 2010
by
Ian Lynagh
Browse files
Add more quoting to distrib/MacOS/installer-scripts/create-links
parent
f9302da8
Changes
1
Hide whitespace changes
Inline
Side-by-side
distrib/MacOS/installer-scripts/create-links
View file @
d1fecad7
...
...
@@ -13,17 +13,17 @@
# 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"
)
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
/"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment