X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=darcs-all;h=046e589f5d9e54b5861735ff9bc5e81848ff78d3;hp=1e773c92f1e9c9bf66f042650ff00c15b1c1fdad;hb=911e7de13ab1c0e5426c7f234e0c8dd29185a2ba;hpb=a28ba79a751ec22728e9bdf4184524d72b038339 diff --git a/darcs-all b/darcs-all index 1e773c9..046e589 100644 --- a/darcs-all +++ b/darcs-all @@ -62,6 +62,7 @@ sub darcs { } sub darcsall { + my @packages; darcs @_; for my $dir (@top_dirs) { if (-d $dir && -d "$dir/_darcs") { @@ -71,12 +72,25 @@ sub darcsall { message "== $dir not present or not a repository; skipping"; } } - for my $pkg (`cat libraries/core-packages libraries/extra-packages`) { - chomp $pkg; - if (-d "libraries/$pkg") { - darcs (@_, "--repodir", "libraries/$pkg"); + for my $path () { + chomp $path; + if ($path =~ m#/(.*)/#) { + my $pkg = $1; + # bootstrapping.* are just copies of other repos; we don't + # update them directly. + if ($pkg !~ /bootstrapping/) { + darcs (@_, "--repodir", "libraries/$pkg"); + } } else { + die "that pattern can't fail!"; + } + } + @packages = `cat libraries/boot-packages`; + # @packages = `cat libraries/boot-packages libraries/extra-packages`; + for my $pkg (@packages) { + chomp $pkg; + if (! -d "libraries/$pkg") { warning("$pkg doesn't exist, use 'darcs-all get' to get it"); } } @@ -112,10 +126,10 @@ sub darcsget { my @packages; if ($extra) { - @packages = `cat core-packages extra-packages`; + @packages = `cat boot-packages extra-packages`; } else { - @packages = `cat core-packages`; + @packages = `cat boot-packages`; } for my $pkg (@packages) {