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

Commit fbef607

Browse files
authored
Merge pull request #284 from randen/win821
Result file (exe, pkg, etc.): "minimal" -> "core"
2 parents ea15eb3 + 8a81f62 commit fbef607

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

hptool/src/Main.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ flags = [ Option ['i'] ["info"] (NoArg $ Right Info)
3333
, Option [] ["prefix"] (ReqArg (Right . Prefix) "DIR")
3434
"Set installation prefix (only for Posix builds)"
3535
, Option ['f'] ["full"] (NoArg $ Right Full)
36-
"Do a full (rather than minimal) build of the platform."
36+
"Do a full (rather than core) build of the platform."
3737
]
3838

3939
main :: IO ()
@@ -67,7 +67,7 @@ main = hSetEncoding stdout utf8 >> shakeArgsWith opts flags main'
6767
\ build-package-<pkg> -- build the package (name or name-ver)\n\
6868
\ build-local -- build the local GHC environment\n\
6969
\ build-website -- build the website\n\
70-
\ and opts may be 'f' for a full rather than minimal build, 'i' for info\n\
70+
\ and opts may be 'f' for a full rather than core build, 'i' for info\n\
7171
\ or 'prefix=...' to set a custom install location prefix for linux"
7272
return Nothing
7373

@@ -94,7 +94,7 @@ main = hSetEncoding stdout utf8 >> shakeArgsWith opts flags main'
9494

9595

9696
whatIsIncluded :: Release -> [String]
97-
whatIsIncluded rel = ("-- Minimal Platform:":minimalIncludes) ++ ("-- Full Platform:":fullIncludes) where
97+
whatIsIncluded rel = ("-- Core Platform:":minimalIncludes) ++ ("-- Full Platform:":fullIncludes) where
9898
minimalIncludes = map (concat . includeToString) $ relMinimalIncludes rel
9999
fullIncludes = map (concat . includeToString) $ relIncludes rel where
100100
includeToString (IncGHC, p) = "GHC: " : [show p]

hptool/src/OS/Mac.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ macOsFromConfig BuildConfig{..} = OS{..}
8080
copyFile' f $ hpDocDir </> takeFileName f
8181

8282
productName =
83-
"Haskell Platform " ++ showVersion hpVersion ++ (if bcIncludeExtra then " Full" else " Minimal") ++ archBits bcArch
83+
"Haskell Platform " ++ showVersion hpVersion ++ (if bcIncludeExtra then " Full" else " Core") ++ archBits bcArch
8484

8585
osProduct = productDir </> productName <.> "pkg"
8686
signedProduct = productDir </> (productName ++ "-signed") <.> "pkg"
@@ -144,7 +144,7 @@ macOsFromConfig BuildConfig{..} = OS{..}
144144
command_ []
145145
"pkgbuild"
146146
[ "--identifier", "org.haskell.HaskellPlatform.Libraries."
147-
++ hpPkgMajorVer ++ (if bcIncludeExtra then "-full" else "-minimal") ++ ".pkg"
147+
++ hpPkgMajorVer ++ (if bcIncludeExtra then "-full" else "-core") ++ ".pkg"
148148
, "--version", hpPkgMinorVer
149149
, "--install-location", "/Library/Haskell"
150150
, "--root", "build/target/Library/Haskell"
@@ -157,7 +157,7 @@ macOsFromConfig BuildConfig{..} = OS{..}
157157
command_ []
158158
"productbuild"
159159
[ "--identifier", "org.haskell.HaskellPlatform."
160-
++ hpPkgMajorVer ++ (if bcIncludeExtra then "-full" else "-minimal") ++ ".pkg"
160+
++ hpPkgMajorVer ++ (if bcIncludeExtra then "-full" else "-core") ++ ".pkg"
161161
, "--version", hpPkgMinorVer
162162
, "--resources", osxInstallResources
163163
, "--distribution", osxInstallerDist

hptool/src/OS/Posix.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ posixOS BuildConfig{..} = OS{..}
7272
installScript = extrasDir </> "installer" </> "install-haskell-platform.sh"
7373

7474
productName =
75-
"haskell-platform-" ++ showVersion hpVersion ++ "-unknown-posix-" ++ (if bcIncludeExtra then "-full-" else "-minimal-") ++ bcArch
75+
"haskell-platform-" ++ showVersion hpVersion ++ "-unknown-posix-" ++ (if bcIncludeExtra then "-full-" else "-core-") ++ bcArch
7676

7777
genericExtrasSrc = "hptool/os-extras/posix"
7878

hptool/src/OS/Win/WinNsis.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ genNsisFiles = do
6565
-- we need to filter those paths out as they are covered by the
6666
-- msys and extralibs .dat lists. N.b.: Filtering by names could be
6767
-- fragile in light of any directory, package, structuring changes.
68-
-- Also note that even in for the "minimal" HP build, there are still
68+
-- Also note that even in for the "core" HP build, there are still
6969
-- a few things in extralibs (specifically alex and happy, as well as
7070
-- the cabal executable.)
7171
ghcInstFilter = filterEmptyDirs . skipExtralibs . skipMSys

hptool/src/OS/Win/WinPaths.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ winDocTargetDir = winTargetDir </> "doc"
223223
winProductFileName :: Bool -> Version -> String -> FilePath
224224
winProductFileName isFull hpv arch =
225225
("HaskellPlatform-" ++ versionAndArch ++ "-setup") <.> "exe"
226-
where versionAndArch = showVersion hpv ++ (if isFull then "-full" else "-minimal") ++ '-' : arch
226+
where versionAndArch = showVersion hpv ++ (if isFull then "-full" else "-core") ++ '-' : arch
227227

228228
-- | Directory where the installer file is built.
229229
winProductFile :: Bool -> Version -> String -> FilePath

hptool/src/Package.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +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
67+
--TODO choose proper "allPackages" based on core or full build
6868

6969
installAction :: FilePath -> Bool -> Release -> Action ()
7070
installAction depFile incExtras hpRel = do

hptool/src/PlatformDB.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ import Data.List (partition)
1818
import Types
1919
import Utils (version)
2020

21-
-- | both minimal and extra platform includes
21+
-- | both core and extra platform includes
2222
allRelIncludes :: Release -> [Include]
2323
allRelIncludes r = relMinimalIncludes r ++ relIncludes r
2424

25-
-- | Construct a release with a minimal partition
25+
-- | Construct a release with a core partition
2626
releaseWithMinimal :: String -> [Include] -> [Include] -> Release
2727
releaseWithMinimal vstr minimalIncs incs = Release (HpVersion $ version vstr) minimalIncs incs
2828

29-
-- | Construct a release, when there is not a seperate minimal selection of includes with the main ones.
29+
-- | Construct a release, when there is not a seperate core selection of includes with the main ones.
3030
release :: String -> [Include] -> Release
3131
release vstr incs = Release (HpVersion $ version vstr) incs []
3232

0 commit comments

Comments
 (0)