summaryrefslogtreecommitdiff
path: root/Master/install-tl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-04-05 22:14:32 +0000
committerKarl Berry <karl@freefriends.org>2020-04-05 22:14:32 +0000
commit138ee5f4db02aa5a8156328dcf36d52ba78d0edd (patch)
tree662a15249ef025e299623ef591cc691d164af516 /Master/install-tl
parentdfb3b4b535405cad2fe87e94273415c716153620 (diff)
(TEXLIVE_INSTALL_PAPER): new envvar for default
paper size. git-svn-id: svn://tug.org/texlive/trunk@54618 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl')
-rwxr-xr-xMaster/install-tl15
1 files changed, 14 insertions, 1 deletions
diff --git a/Master/install-tl b/Master/install-tl
index 62f8eb7261e..741e9f9b57b 100755
--- a/Master/install-tl
+++ b/Master/install-tl
@@ -1205,7 +1205,15 @@ operations might be disturbed.\n\n";
}
# now work through the options if specified at all
-
+ my $env_paper = $ENV{"TEXLIVE_INSTALL_PAPER"};
+ if ($env_paper eq "letter") {
+ $vars{'instopt_letter'} = 1;
+ } elsif ($env_paper eq "a4") {
+ ; # do nothing
+ } elsif ($env_paper) {
+ tlwarn("$0: TEXLIVE_INSTALL_PAPER value must be letter or a4, not: "
+ . "$env_paper (ignoring)\n");
+ }
# letter instead of a4
if ($vars{'instopt_letter'}) {
# set paper size, but do not execute any post actions, which in this
@@ -3155,6 +3163,11 @@ asking about importing previous settings.
Omit printing the welcome message after successful installation, e.g.,
when testing.
+=item C<TEXLIVE_INSTALL_PAPER>
+
+Set the default paper size for all relevant programs; must be either
+C<letter> or C<a4>. The default is C<a4>.
+
=item C<TEXLIVE_INSTALL_PREFIX>
=item C<TEXLIVE_INSTALL_TEXDIR>