SUBDIRS = gmp includes compat utils driver docs rts libraries compiler
-# Sanity check that all the core libraries are in the tree, to catch
+# Sanity check that all the boot libraries are in the tree, to catch
# failure to run darcs-all.
check-packages :
- @for d in `cat libraries/core-packages`; do \
+ @for d in `cat libraries/boot-packages`; do \
if test ! -d libraries/$$d; then \
echo "Looks like you're missing libraries/$$d,"; \
echo "maybe you haven't done './darcs-all get'?"; \
ghc-<version>-src-extralibs.tar.bz2
You only need the first one, which contains GHC itself and
- the "core" libraries.
+ the "boot" libraries.
The extralibs package contains a bunch of optional libraries. If
you want, you can unpack this over the top of your source tree, and
$ chmod +x darcs-all
$ ./darcs-all get
- This grabs the "core" packages by default. To get the full set of
+ This grabs the "boot" packages by default. To get the full set of
packages, instead say
$ ./darcs-all --extra get
#! /bin/sh
set -e
-# Check that we have all core packages.
-for dir in `cat libraries/core-packages`
+# Check that we have all boot packages.
+for dir in `cat libraries/boot-packages`
do
if test ! -d libraries/$dir
then
message "== $dir not present or not a repository; skipping";
}
}
- for my $pkg (`cat libraries/core-packages libraries/extra-packages`) {
+ for my $pkg (`cat libraries/boot-packages libraries/extra-packages`) {
chomp $pkg;
if (-d "libraries/$pkg") {
darcs (@_, "--repodir", "libraries/$pkg");
my @packages;
if ($extra) {
- @packages = `cat core-packages extra-packages`;
+ @packages = `cat boot-packages extra-packages`;
}
else {
- @packages = `cat core-packages`;
+ @packages = `cat boot-packages`;
}
for my $pkg (@packages) {
&& touch $@ || touch $*/unbuildable
# We don't touch $@ if configure failed as we would prefer to try
# configuring it next time round, rather than assuming it'll still fail.
-# This is particularly important for corelibs, where failure means the
+# This is particularly important for bootlibs, where failure means the
# build dies!
# Build the library using 'make'
--- Returns exitcode 0 if the given package is buildable or is a core package,
+-- Returns exitcode 0 if the given package is buildable or is a boot package,
-- and 1 otherwise.
module Main (main) where
getMustBeBuildablePackages :: IO [String]
getMustBeBuildablePackages
- = do xs <- readFile "../core-packages"
+ = do xs <- readFile "../boot-packages"
return $ filter ("readline" /=) $ lines xs
# These are the URL patterns that Haddock uses to generate the "Source
# File" links on each page.
-CorePackageSourceURL = http://darcs.haskell.org/ghc-6.6/packages/$(PACKAGE)/%{FILE}
-ExtraPackageSourceURL = http://darcs.haskell.org/packages/$(PACKAGE)/%{FILE}
-
-# These are the packages required to be present in order to bootstrap GHC
-# NB. must be synced with libraries/core-packages
-CorePackages = base Cabal haskell98 readline regex-base regex-compat \
- regex-posix parsec stm template-haskell unix Win32
+PackageSourceURL = http://darcs.haskell.org/packages/$(PACKAGE)/%{FILE}
# ----------------------------------------------------------------------------
# Object-file splitting
extraclean ::
$(RM) -rf $(HTML_DIR)
-ifneq "$(findstring $(PACKAGE), $(CorePackages))" ""
-HaddockSourceURL = $(CorePackageSourceURL)
-else
-HaddockSourceURL = $(ExtraPackageSourceURL)
-endif
-
$(HTML_DOC) : $(HS_PPS)
@$(INSTALL_DIR) $(HTML_DIR)
$(HADDOCK) $(HADDOCK_OPTS) -h -o $(HTML_DIR) $(HS_PPS) \
--package=$(PACKAGE) \
--dump-interface=$(PACKAGE).haddock \
--use-index=../doc-index.html --use-contents=../index.html \
- --source-module=$(HaddockSourceURL) \
+ --source-module=$(PackageSourceURL) \
$(foreach pkg, $(PACKAGE_DEPS), \
--read-interface=../$(pkg),../$(pkg)/$(pkg).haddock)
# --checked-out says we are pushing to a checked out tree
my $checked_out = 0;
-# --core-only says we only want to push corelibs, not extralibs
-my $core_only = 0;
+# --boot-only says we only want to push bootlibs, not extralibs
+my $boot_only = 0;
# --push or --pull?
my $push_pull = "push";
message "== $dir not present or not a repository; skipping";
}
}
- my $library_lists = $core_only
- ? "libraries/core-packages"
- : "libraries/core-packages libraries/extra-packages";
+ my $library_lists = $boot_only
+ ? "libraries/boot-packages"
+ : "libraries/boot-packages libraries/extra-packages";
for my $pkg (`cat $library_lists`) {
chomp $pkg;
$dir = "libraries/$pkg";
elsif ($arg eq "--checked-out") {
$checked_out = 1;
}
- elsif ($arg eq "--core-only") {
- $core_only = 1;
+ elsif ($arg eq "--boot-only") {
+ $boot_only = 1;
}
elsif ($arg eq "--push") {
$push_pull = "push";