X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=push-all;fp=push-all;h=8e9f9f314bed86a7680b43796ee466545463dce5;hp=ed825fc3bb9bf94ef4089125227e0f5a32d40a3e;hb=29e0999a73665a37c0c3fd311ac961f81c50bb92;hpb=b4e88b1999b29c14668df90564fc0d3c89d94120 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 {