X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=push-all;h=8e9f9f314bed86a7680b43796ee466545463dce5;hb=b980fbf46aad86bab37a628cb8dc7f7602d7452d;hp=d4491cfae41168fd3bbeccb0da2fb1b0c633e17c;hpb=d4ecd3d07eeea6e66e4da40f9675e59c8afd5498;p=ghc-hetmet.git diff --git a/push-all b/push-all index d4491cf..8e9f9f3 100644 --- a/push-all +++ b/push-all @@ -39,13 +39,15 @@ sub pushall { my $remotepath; my $path; my $tag; - my $ghcrepo = $checked_out ? $reporoot : "$reporoot/ghc"; - darcs_push ($ghcrepo, @_); - + my @repos; + open IN, "< packages" or die "Can't open packages file"; - while () { + @repos = ; + close IN; + + foreach (@repos) { chomp; - if (/^([^ ]+) +(?:([^ ]+) +)?([^ ]+)/) { + if (/^([^# ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) { $localpath = $1; $tag = defined($2) ? $2 : ""; $remotepath = $3; @@ -67,8 +69,10 @@ sub pushall { message "== $localpath repo not present; skipping"; } } + elsif (! /^(#.*)?$/) { + die "Bad line: $_"; + } } - close IN; } sub main {