X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=push-all;h=2ce0a3d4585de81313e9534e02f019d84b5e96a4;hp=e48692397c44cb06523f63f4a34939e53c872d25;hb=479f9fcbe056864fd5daff01d0e00d4a432b3658;hpb=b494094bdec3f756010583342ce7bd1fed805281 diff --git a/push-all b/push-all index e486923..2ce0a3d 100644 --- a/push-all +++ b/push-all @@ -11,10 +11,10 @@ my $ignore_failure = 0; # --checked-out says we are pushing to a checked out tree my $checked_out = 0; -# --core-only says we only want to push corelibs, not extralibs -my $core_only = 0; -# --push or --pull? -my $push_pull = "push"; +# --boot-only says we only want to push bootlibs, not extralibs +my $boot_only = 0; +# --push or --pull or --send? +my $push_pull_send = "push"; sub message { if ($verbose) { @@ -34,7 +34,7 @@ sub darcs { } sub darcs_push { - darcs ($push_pull, "--no-set-default", @_); + darcs ($push_pull_send, "--no-set-default", @_); } sub pushall { @@ -49,9 +49,9 @@ sub pushall { message "== $dir not present or not a repository; skipping"; } } - my $library_lists = $core_only - ? "libraries/core-packages" - : "libraries/core-packages libraries/extra-packages"; + my $library_lists = $boot_only + ? "libraries/boot-packages" + : "libraries/boot-packages libraries/extra-packages"; for my $pkg (`cat $library_lists`) { chomp $pkg; $dir = "libraries/$pkg"; @@ -83,14 +83,17 @@ sub main { elsif ($arg eq "--checked-out") { $checked_out = 1; } - elsif ($arg eq "--core-only") { - $core_only = 1; + elsif ($arg eq "--boot-only") { + $boot_only = 1; } elsif ($arg eq "--push") { - $push_pull = "push"; + $push_pull_send = "push"; } elsif ($arg eq "--pull") { - $push_pull = "pull"; + $push_pull_send = "pull"; + } + elsif ($arg eq "--send") { + $push_pull_send = "send"; } else { $reporoot = $arg;