summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-09-29 00:05:48 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-09-29 00:05:48 +0000
commitdbeb0fad24ac37bc07e21e1cac4d372493f4fb28 (patch)
tree3a72c42d3ba9f57ee240c2e93f4233e05dd611c1 /scripts
parent5d4112737d4c1169f85069fd9f5830266a03b28b (diff)
downloadmaster-31e0f0ae-dbeb0fad24ac37bc07e21e1cac4d372493f4fb28.tar.gz
master-31e0f0ae-dbeb0fad24ac37bc07e21e1cac4d372493f4fb28.tar.bz2
master-31e0f0ae-dbeb0fad24ac37bc07e21e1cac4d372493f4fb28.zip
Refactor downloading code into download.mk Support multiple file downloads Support svn downloads
SVN-Revision: 9057
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/download.pl5
1 files changed, 2 insertions, 3 deletions
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 <target dir> <filename> <md5sum> [<mirror> ...]\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 <target dir> <filename> <md5sum> <mirror> [<mirror> ...]\n";
-
sub localmirrors {
my @mlist;
open LM, "$scriptdir/localmirrors" and do {