aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/download.pl
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
commit8d169cc962910f9f00e83effcb37772e8100e2d2 (patch)
treebf49528f12e9948445013655180dae0caabd6cf5 /scripts/download.pl
parenteb77c1aa6ef079d6903d6d224f6c278df46b4d1f (diff)
downloadupstream-8d169cc962910f9f00e83effcb37772e8100e2d2.tar.gz
upstream-8d169cc962910f9f00e83effcb37772e8100e2d2.tar.bz2
upstream-8d169cc962910f9f00e83effcb37772e8100e2d2.zip
Refactor downloading code into download.mk
Support multiple file downloads Support svn downloads git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9057 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/download.pl')
-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 {