diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2016-04-22 13:12:22 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2016-04-22 13:12:22 +0000 |
commit | 5e43957be94fd21d000f4e08060a1af968f005a0 (patch) | |
tree | e2c78b351d6765acb2c3013e7da37de1f7dbd2eb /Master/install-tl | |
parent | e2d904580ff3d48ca4e51f20c5f089204c64dd7d (diff) |
Windows: configuring for exernal perl if found and recent
git-svn-id: svn://tug.org/texlive/trunk@40677 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl')
-rwxr-xr-x | Master/install-tl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Master/install-tl b/Master/install-tl index 85b7a9f8df2..b9b3a7cbc78 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -1153,6 +1153,26 @@ shell_escape = 0 EOF ; } + + # external perl for third-party scripts? + # the wrapper batchfile has set the environment variable extperl + # to its version if available and 0 otherwise. + if (win32) { + my $use_ext = 0; + if (!$vars{'portable'} && + defined $ENV{'extperl'} && $ENV{'extperl'} =~ /^(\d+\.\d+)/) { + $use_ext = 1 if $1 >= 5.14; + } + print TMF <<EOF; + +% Prefer external Perl for third-party TeXLive Perl scripts +% Was set to 1 if at install time a sufficiently recent Perl was detected. +EOF +; + print TMF "TEXLIVE_WINDOWS_TRY_EXTERNAL_PERL = " . $use_ext; + log("Configuring for using external perl for third-party scripts\n") + } + close(TMF) || warn "close($TMF) failed: $!"; $TMFLUA = ">$vars{'TEXDIR'}/texmfcnf.lua"; |