X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=push-all;h=8e9f9f314bed86a7680b43796ee466545463dce5;hb=081d294c2a4a9e886e96ab50cf43718b54696646;hp=ed825fc3bb9bf94ef4089125227e0f5a32d40a3e;hpb=99daef874ab8f0c3b1d1ec1888d6bb6d368a4b79;p=ghc-hetmet.git diff --git a/push-all b/push-all index ed825fc..8e9f9f3 100644 --- a/push-all +++ b/push-all @@ -39,9 +39,13 @@ sub pushall { my $remotepath; my $path; my $tag; + my @repos; open IN, "< packages" or die "Can't open packages file"; - while () { + @repos = ; + close IN; + + foreach (@repos) { chomp; if (/^([^# ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) { $localpath = $1; @@ -69,7 +73,6 @@ sub pushall { die "Bad line: $_"; } } - close IN; } sub main {