X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=darcs-all;h=153f007c6d50007dae06b40311e27b6ee47e69ea;hb=01a263ee44ed71965c400d4d93950bc56c0aa058;hp=579bc5cd15bdb2883da4fa8692933b0c66997a89;hpb=4ce08e13864d000c599e1816b284b23ef16b2971;p=ghc-hetmet.git diff --git a/darcs-all b/darcs-all index 579bc5c..153f007 100644 --- a/darcs-all +++ b/darcs-all @@ -4,7 +4,7 @@ set -e top_dirs="nofib testsuite" -default_repo_root="http://darcs.haskell.org/" +default_repo_root="http://darcs.haskell.org/ghc-6.6/" default_lib_repo_root=$default_repo_root/packages quiet=NO @@ -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