5 top_dirs="nofib testsuite"
7 default_repo_root="http://darcs.haskell.org/ghc-6.6/"
8 default_lib_repo_root=$default_repo_root/packages
10 default_extra_repo_root="http://darcs.haskell.org/"
11 default_extra_lib_repo_root=$default_extra_repo_root/packages
17 if [ "$quiet" = "NO" ]; then
24 message "== running darcs $* at the top level"
26 for dir in $top_dirs; do
27 if test -d $dir -a -d $dir/_darcs; then
28 message "== running darcs $* in $dir"
29 darcs $* --repodir $dir
31 message "== $dir not present or not a repository; skipping"
34 for pkg in `cat libraries/core-packages libraries/extra-packages`; do
35 if test -d libraries/$pkg; then
36 message "== running darcs $* in libraries/$pkg"
37 darcs $* --repodir libraries/$pkg
39 echo "warning: $pkg doesn't seem to exist, use 'darcs-all get' to get it"
48 *) echo "warning: adding --partial, to override use --complete"
51 repo_root=`cat _darcs/prefs/defaultrepo`
53 /*) lib_repos=$repo_root/libraries;;
54 *) lib_repos=$default_lib_repo_root;;
59 for pkg in `cat core-packages`; do
61 echo "warning: $pkg already present; omitting"
64 message "== running darcs get --partial $* $repo"
65 darcs get --partial $* $repo
69 if test "$extra" = "YES"; then
70 for pkg in `cat extra-packages`; do
72 echo "warning: $pkg already present; omitting"
74 repo=$default_extra_lib_repo_root/$pkg
75 message "== running darcs get --partial $* $repo"
76 darcs get --partial $* $repo
82 if test ! -d _darcs -o ! -d compiler; then
83 echo "error: darcs-all must be run from the top level of the ghc tree."
91 # --extra says we grab the extra libs with 'get'. It has no effect on
95 --extra) shift; extra=YES;
99 get) shift; darcsget $*;;
100 # Hack around whatsnew failing if there are no changes
101 w|wh|wha|what|whats|whatsn|whatsne|whatsnew) set +e; darcsall $*;;