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

Commit e3015bc

Browse files
committed
small changes
1 parent c26db65 commit e3015bc

File tree

4 files changed

+28
-20
lines changed

4 files changed

+28
-20
lines changed

hptool/src/OS/Mac.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ macOsFromConfig BuildConfig{..} = OS{..}
138138
, out
139139
]
140140

141+
141142
hpPkgFile %> \out -> do
142-
need [targetDir, dir extrasDir] -- FIXME(mzero): could be more specific
143+
need [targetDir]
144+
need [dir extrasDir] -- FIXME(mzero): could be more specific
143145
command_ []
144146
"pkgbuild"
145147
[ "--identifier", "org.haskell.HaskellPlatform.Libraries."

hptool/src/Package.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ packageRules = do
6464
-- Having the package names reverse sort as graph keys makes the SCC
6565
-- components come out closer to normal sort order. Go figure!
6666

67+
--TODO choose proper "allPackages" based on minimal or full build
6768

6869
installAction :: FilePath -> Bool -> Release -> Action ()
6970
installAction depFile incExtras hpRel = do

hptool/src/Releases2016.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ hp_8_0_1 =
106106
, incLib "fixed" "0.2.1.1"
107107
]
108108

109+
109110
hp_8_0_2 :: Release
110111
hp_8_0_2 =
111112
releaseWithMinimal "8.0.2"

platform.sh

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,36 @@
11
#!/bin/sh
22

3+
4+
#for OS X in particular
5+
export MACOSX_DEPLOYMENT_TARGET=10.6
6+
37
set -e
48

5-
HPTOOL=hptool/dist/build/hptool/hptool
9+
HPTOOL=hptool/dist-newstyle/build/hptool-0.1/build/hptool/hptool
610
HPTOOL_ALT=hptool/.cabal-sandbox/bin/hptool
711

8-
if ( cabal sandbox --help >/dev/null 2>&1 ) ; then
9-
if [ \! -d hptool/.cabal-sandbox ]
10-
then
11-
echo '***'
12-
echo '*** Setting up sandbox for hptool'
13-
echo '***'
14-
cabal update
15-
(cd hptool; cabal sandbox init; cabal install --only-dependencies)
16-
fi
17-
else
18-
if ( cabal install --dry-run --only-dependencies | grep -q 'would be installed' ) ; then
19-
echo '=== pre-requisite packages for hptool are not installed'
20-
echo ' run the following:'
21-
echo ' cd hptool ; cabal install --only-dependencies'
22-
exit 1
23-
fi
24-
fi
12+
#if ( cabal sandbox --help >/dev/null 2>&1 ) ; then
13+
# if [ \! -d hptool/.cabal-sandbox ]
14+
# then
15+
# echo '***'
16+
# echo '*** Setting up sandbox for hptool'
17+
# echo '***'
18+
# cabal update
19+
# (cd hptool; cabal sandbox init; cabal install --only-dependencies)
20+
# fi
21+
#else
22+
# if ( cabal install --dry-run --only-dependencies | grep -q 'would be installed' ) ; then
23+
# echo '=== pre-requisite packages for hptool are not installed'
24+
# echo ' run the following:'
25+
# echo ' cd hptool ; cabal install --only-dependencies'
26+
# exit 1
27+
# fi
28+
#fi
2529

2630
echo '***'
2731
echo '*** Building hptool'
2832
echo '***'
29-
(cd hptool; cabal build)
33+
(cd hptool; cabal new-build)
3034

3135
if [ "$HPTOOL_ALT" -nt "$HPTOOL" ] ; then
3236
HPTOOL="$HPTOOL_ALT"

0 commit comments

Comments
 (0)