5 my @top_dirs = ("nofib", "testsuite");
10 my $ignore_failure = 0;
12 # --checked-out says we are pushing to a checked out tree
22 print "warning: @_\n";
26 message "== running darcs @_";
27 system ("darcs", @_) == 0
29 or die "darcs failed: $?";
33 darcs ("push", "--no-set-default", @_);
38 my $ghcrepo = $checked_out ? $reporoot : "$reporoot/ghc";
39 darcs_push ($ghcrepo, @_);
40 for $dir (@top_dirs) {
41 if (-d $dir && -d "$dir/_darcs") {
42 darcs_push ("$reporoot/$dir", @_, "--repodir", $dir);
45 message "== $dir not present or not a repository; skipping";
48 for my $pkg (`cat libraries/core-packages libraries/extra-packages`) {
50 $dir = "libraries/$pkg";
52 darcs_push ("$reporoot/$dir", @_, "--repodir", "$dir");
55 warning("$pkg doesn't exist, use 'darcs-all get' to get it");
61 if (! -d "_darcs" || ! -d "compiler") {
62 die "error: darcs-all must be run from the top level of the ghc tree."
68 # We handle -q here as well as lower down as we need to skip
69 # over it if it comes before the darcs command
73 elsif ($arg eq "--checked-out") {
78 if (grep /^-q$/, @_) {
86 die "Where do you want to push to?";