From dbeb0fad24ac37bc07e21e1cac4d372493f4fb28 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 29 Sep 2007 00:05:48 +0000 Subject: Refactor downloading code into download.mk Support multiple file downloads Support svn downloads SVN-Revision: 9057 --- scripts/download.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/download.pl b/scripts/download.pl index 66eaca8b36..161ae7f64b 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -10,16 +10,15 @@ use strict; use warnings; use File::Basename; +@ARGV > 2 or die "Syntax: $0 [ ...]\n"; + my $target = shift @ARGV; my $filename = shift @ARGV; my $md5sum = shift @ARGV; my $scriptdir = dirname($0); my @mirrors; - my $ok; -@ARGV > 0 or die "Syntax: $0 [ ...]\n"; - sub localmirrors { my @mlist; open LM, "$scriptdir/localmirrors" and do { -- cgit v1.2.3