3 top_dirs="nofib testsuite"
5 default_repo_root="http://darcs.haskell.org/"
6 default_lib_repo_root=$default_repo_root/packages
10 echo == running darcs $* at the top level
12 for dir in $top_dirs; do
13 if test -d $dir -a -d $dir/_darcs; then
14 echo "== running darcs $* in $dir"
15 darcs $* --repodir $dir
17 echo "== $dir not present or not a repository; skipping"
20 for pkg in `cat libraries/default-packages`; do
21 if test -d libraries/$pkg; then
22 echo "== running darcs $* in libraries/$pkg"
23 darcs $* --repodir libraries/$pkg
25 echo "warning: $dir doesn't seem to exist, use 'darcs-all get' to get it"
34 *) echo "warning: adding --partial, to override use --complete"
37 repo_root=`cat _darcs/prefs/defaultrepo`
39 /*) lib_repos=$repo_root/libraries;;
40 *) lib_repos=$default_lib_repo_root;;
44 for pkg in `cat default-packages`; do
46 echo "warning: $pkg already present; omitting"
49 echo "== running darcs get --partial $* $repo"
50 darcs get --partial $* $repo
55 if test ! -d _darcs -o ! -d ghc; then
56 echo "error: darcs-all must be run from the top level of the ghc tree."
61 push|pull|wh*) darcsall $*;;
62 get) shift; darcsget $*;;
63 *) echo "syntax: ./darcs-all push|pull|whatsnew|get"; exit 1;;