From 94cd3fa88070dc2efc09c3e48f4a69cabf785e19 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 19 Apr 2008 10:43:07 +0000 Subject: some documenation for download_file, TL_DOWNLOAD_PROGRAM and _ARGS git-svn-id: svn://tug.org/texlive/trunk@7513 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/TeXLive/TLUtils.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 929681a69f5..d2d51ab402b 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -710,13 +710,22 @@ sub setup_programs { =item C Try to download the file given in C<$relpath> from either C<$TeXLiveURL> -or C into C<$destination> (a filename!). +or C into C<$destination>, which can be either +a filename of simply C<|>. In the latter case a file handle is returned. The optional argument C<$progs> is a reference to a hash giving full pathes to the respective programs, at least C. In case that C<$progs> is not given the C<%::progs> is consulted, and if this also does not exist we try "wget". +Downloading honors two environment variables C and +C. The former overrides C (or what is given in the +C<$progs> argument, the latter overrides the default wget arguments +given in C<$TeXLive::TLConfig::DefaultWgetArgs>. + +C must be set up in a way that the place the output should +go to is the first argument after the C. Use with care. + =cut sub download_file { -- cgit v1.2.3