5 top_dirs="nofib testsuite"
7 default_repo_root="http://darcs.haskell.org/"
8 default_lib_repo_root=$default_repo_root/packages
12 echo == running darcs $* at the top level
14 for dir in $top_dirs; do
15 if test -d $dir -a -d $dir/_darcs; then
16 echo "== running darcs $* in $dir"
17 darcs $* --repodir $dir
19 echo "== $dir not present or not a repository; skipping"
22 for pkg in `cat libraries/default-packages`; do
23 if test -d libraries/$pkg; then
24 echo "== running darcs $* in libraries/$pkg"
25 darcs $* --repodir libraries/$pkg
27 echo "warning: $dir doesn't seem to exist, use 'darcs-all get' to get it"
36 *) echo "warning: adding --partial, to override use --complete"
39 repo_root=`cat _darcs/prefs/defaultrepo`
41 /*) lib_repos=$repo_root/libraries;;
42 *) lib_repos=$default_lib_repo_root;;
46 for pkg in `cat default-packages`; do
48 echo "warning: $pkg already present; omitting"
51 echo "== running darcs get --partial $* $repo"
52 darcs get --partial $* $repo
57 if test ! -d _darcs -o ! -d ghc; then
58 echo "error: darcs-all must be run from the top level of the ghc tree."
63 get) shift; darcsget $*;;
64 # Hack around whatsnew failing if there are no changes
65 w|wh|wha|what|whats|whatsn|whatsne|whatsnew) set +e; darcsall $*;;