summaryrefslogtreecommitdiff
path: root/darcs-all
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-08-24 11:49:02 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-08-24 11:49:02 +0000
commitcc4e58b669ea557909bde4307b0cc5fed19de919 (patch)
tree1c2284ccc952c11be83406a4bea01d775d471275 /darcs-all
parent506299fe7ab11594a15e2167c128ab0f7a8ec89c (diff)
downloadhaskell-cc4e58b669ea557909bde4307b0cc5fed19de919.tar.gz
divide packages into "core" and "extra" packages
The following packages are now "core" packages: base, Cabal, haskell98, readline, regex-base, regex-compat regex-posix, stm, template-haskell, unix, Win32 Core packages are those packages required to bootstrap GHC, or are closely tied to GHC (stm, template-haskell). These are the packages that will be provided in a source distribution from now on. All other packages are classified as "extra" packages. As far as binary distributions and nightly builds go, nothing will change - we'll still build and include all these packages in the distributions. NOTE: 'sh darcs-all get' will now get the core packages only. To get the extra packages too, use 'sh darcs-all --extra get'.
Diffstat (limited to 'darcs-all')
-rw-r--r--darcs-all18
1 files changed, 16 insertions, 2 deletions
diff --git a/darcs-all b/darcs-all
index 579bc5cd15..9efeab13e9 100644
--- a/darcs-all
+++ b/darcs-all
@@ -28,7 +28,7 @@ darcsall()
message "== $dir not present or not a repository; skipping"
fi
done
- for pkg in `cat libraries/default-packages`; do
+ for pkg in `cat libraries/core-packages libraries/extra-packages`; do
if test -d libraries/$pkg; then
message "== running darcs $* in libraries/$pkg"
darcs $* --repodir libraries/$pkg
@@ -52,7 +52,14 @@ darcsget()
esac
cd libraries
- for pkg in `cat default-packages`; do
+
+ if test "$extra" = "YES"; then
+ packages=`cat core-packages extra-packages`
+ else
+ packages=`cat core-packages`
+ fi
+
+ for pkg in $packages; do
if test -d $pkg; then
echo "warning: $pkg already present; omitting"
else
@@ -72,6 +79,13 @@ case $* in
*-q*) quiet=YES;;
esac
+# --extra says we grab the extra libs with 'get'. It has no effect on
+# the other commands.
+extra=NO;
+case $1 in
+ --extra) shift; extra=YES;
+esac
+
case $1 in
get) shift; darcsget $*;;
# Hack around whatsnew failing if there are no changes