Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit f2b91c9

Browse files
committed
Merge pull request #228 from mzero/osx-elcap-fix
symlink system installed bits into /usr/local/bin and /usr/local/share
2 parents a59d8a4 + 2030601 commit f2b91c9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

hptool/os-extras/osx/bin/activate-hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,12 @@ fi
280280
### Set up /usr
281281
###
282282

283-
symLinkInto $ghcRoot/usr/bin/* /usr/bin
284-
symLinkInto $ghcRoot/usr/share/man/man1/* /usr/share/man/man1
285-
symLinkInto $ghcRoot/usr/share/doc/ghc /usr/share/doc
283+
symLinkInto $ghcRoot/usr/bin/* /usr/local/bin
284+
symLinkInto $ghcRoot/usr/share/man/man1/* /usr/local/share/man/man1
285+
symLinkInto $ghcRoot/usr/share/doc/ghc /usr/local/share/doc
286286

287287
if [ -d "$hpRoot" ] ; then
288-
symLinkInto $hpRoot/bin/* /usr/bin
288+
symLinkInto $hpRoot/bin/* /usr/local/bin
289289
fi
290290

291291

@@ -327,7 +327,7 @@ if [ -f "$settingsFile" ] ; then
327327
else
328328
cmd=$( extractSetting "C compiler command" )
329329
if [ "$( determineCompiler $cmd )" = "clang" ] ; then
330-
wrapperCmd=/usr/bin/ghc-clang-wrapper
330+
wrapperCmd=/usr/local/bin/ghc-clang-wrapper
331331
if [ -f "$wrapperCmd" -a -e "$wrapperCmd" ] ; then
332332
updateSetting "C compiler command" "$wrapperCmd"
333333
else
@@ -353,7 +353,7 @@ fi
353353
if [ -d "$hpRoot" ] ; then
354354
for conf in $hpRoot/lib/registrations/*
355355
do
356-
run /usr/bin/ghc-pkg register --verbose=0 --force $conf 2>/dev/null
356+
run /usr/local/bin/ghc-pkg register --verbose=0 --force $conf 2>/dev/null
357357
done
358358
fi
359359

hptool/os-extras/osx/bin/uninstall-hs.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env runghc
1+
#!/usr/local/bin/env runghc
22

33
module Main where
44

hptool/os-extras/osx/doc/start.html.mu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ p {
119119
<p>On Mac OS X, the Haskell Platform is installed in two major pieces: GHC and Haskell Platform. They are installed respectively in:</p>
120120
<p class="paths">/Library/Frameworks/GHC.framework
121121
<br/>/Library/Haskell</p>
122-
<p>Executables are symlinked in <tt>/usr/bin</tt> and should be available in any shell.</p>
122+
<p>Executables are symlinked in <tt>/usr/local/bin</tt> and should be available in any shell.</p>
123123

124124
<h2>Versions &amp; Uninstallation</h2>
125125
<p>This and prior versions of GHC and Haskell Platform can be found and then easily removed with the uninstallation command line utility:</p>

0 commit comments

Comments
 (0)