From 29f51454d26547cf60979a6578f2d4af728b27b9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 22 Nov 2018 23:37:16 +0000 Subject: doc git-svn-id: svn://tug.org/texlive/trunk@49226 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/TeXLive/TLUtils.pm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Master/tlpkg/TeXLive') diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index 399e3fe4d1a..3f6746c36e0 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -2328,7 +2328,7 @@ sub read_file_ignore_cr { } -=item C +=item C Populate the global C<$::progs> hash containing the paths to the programs C, C, C, C. The C<$bindir> argument specifies @@ -2337,6 +2337,10 @@ gives the TeX Live platform name, used as the extension on our executables. If a program is not present in the TeX Live tree, we also check along PATH (without the platform extension.) +If the C<$tlfirst> argument or the C envvar is set, +prefer TL versions; else prefer system versions (except for Windows +C, where we always use ours). + Check many different downloads and compressors to determine what is working. @@ -2393,10 +2397,13 @@ sub setup_programs { } $::progs{'working_downloaders'} = [ @working_downloaders ]; my @working_compressors; - for my $defprog (sort {$Compressors{$a}{'priority'} <=> $Compressors{$b}{'priority'}} keys %Compressors) { + for my $defprog (sort + { $Compressors{$a}{'priority'} <=> $Compressors{$b}{'priority'} } + keys %Compressors) { # do not warn on errors if (setup_one(($isWin ? "w32" : "unix"), $defprog, - "$bindir/$defprog/$defprog.$platform", "--version", $tlfirst)) { + "$bindir/$defprog/$defprog.$platform", "--version", + $tlfirst)) { push @working_compressors, $defprog; # also set up $::{'compressor'} if not already done # this selects the first one, but we might reset this depending on @@ -2580,7 +2587,7 @@ into C<$destination>, which can be either a filename of simply C<|>. In the latter case a file handle is returned. Downloading first checks for the environment variable C, -which takes various built-in values. If not set, the next check is fr +which takes various built-in values. If not set, the next check is for C and C. The former overrides the above specification devolving to C, and the latter overrides the default wget arguments. -- cgit v1.2.3