summaryrefslogtreecommitdiff
path: root/systems/texlive/tlnet/install-tl
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-06-20 03:03:42 +0000
committerNorbert Preining <norbert@preining.info>2022-06-20 03:03:42 +0000
commitd1dd8ea4ff1d6807ae7c5ee72de330c33e166131 (patch)
treeb3df0b70ef6fda0f5d237d5bd23604f9ce805529 /systems/texlive/tlnet/install-tl
parent15103df278e40e78061cca62bd5d956644f3352a (diff)
CTAN sync 202206200303
Diffstat (limited to 'systems/texlive/tlnet/install-tl')
-rwxr-xr-xsystems/texlive/tlnet/install-tl40
1 files changed, 30 insertions, 10 deletions
diff --git a/systems/texlive/tlnet/install-tl b/systems/texlive/tlnet/install-tl
index 0ea6a87544..6d44161b7c 100755
--- a/systems/texlive/tlnet/install-tl
+++ b/systems/texlive/tlnet/install-tl
@@ -1,5 +1,5 @@
#!/usr/bin/env perl
-# $Id: install-tl 63643 2022-06-18 21:43:37Z karl $
+# $Id: install-tl 63655 2022-06-19 21:51:29Z karl $
# Copyright 2007-2022
# Reinhard Kotucha, Norbert Preining, Karl Berry, Siep Kroonenberg.
# This file is licensed under the GNU General Public License version 2
@@ -10,7 +10,7 @@
use strict; use warnings;
-my $svnrev = '$Revision: 63643 $';
+my $svnrev = '$Revision: 63655 $';
$svnrev =~ m/: ([0-9]+) /;
$::installerrevision = ($1 ? $1 : 'unknown');
@@ -283,6 +283,7 @@ my $opt_continue = 1;
my $opt_custom_bin;
my $opt_debug_fakenet = 0;
my $opt_debug_setup_vars = 0;
+my $opt_doc_install = 1;
my $opt_font;
my $opt_force_arch;
my $opt_gui = "text";
@@ -292,8 +293,7 @@ my $opt_installation = 1;
my $opt_interaction = 1;
my $opt_location = "";
my $opt_no_gui = 0;
-my $opt_no_doc_install = 0;
-my $opt_no_src_install = 0;
+my $opt_no_interaction = 0;
my $opt_nonadmin = 0;
my $opt_paper = "";
my $opt_persistent_downloads = 1;
@@ -301,6 +301,7 @@ my $opt_portable = 0;
my $opt_print_arch = 0;
my $opt_profile = "";
my $opt_scheme = "";
+my $opt_src_install = 1;
my $opt_texdir = "";
my $opt_texuserdir = "";
my $opt_version = 0;
@@ -383,6 +384,7 @@ GetOptions(
"debug-fakenet" => \$opt_debug_fakenet,
"debug-setup-vars" => \$opt_debug_setup_vars,
"debug-translation" => \$::debug_translation,
+ "doc-install!" => \$opt_doc_install,
"fancyselector",
"font=s" => \$opt_font,
"force-platform|force-arch=s" => \$opt_force_arch,
@@ -394,17 +396,17 @@ GetOptions(
"lang|gui-lang=s" => \$::opt_lang,
"location|url|repository|repos|repo=s" => \$opt_location,
"no-cls", # $::opt_no_cls in install-menu-text-pl
- "no-doc-install" => \$opt_no_doc_install,
+ "N" => \$opt_no_interaction,
"no-gui" => \$opt_no_gui,
- "no-src-install" => \$opt_no_src_install,
"non-admin" => \$opt_nonadmin,
"paper=s" => \$opt_paper,
"persistent-downloads!" => \$opt_persistent_downloads,
"portable" => \$opt_portable,
"print-platform|print-arch" => \$opt_print_arch,
"profile=s" => \$opt_profile,
- "scheme=s" => \$opt_scheme,
+ "scheme|s=s" => \$opt_scheme,
"select-repository" => \$::opt_select_repository,
+ "src-install!" => \$opt_src_install,
"tcl", # handled by wrapper
"texdir=s" => \$opt_texdir,
"texmfconfig=s" => \$pathopts{'texmfconfig'},
@@ -422,6 +424,9 @@ if ($from_ext_gui) {
$opt_gui = "extl";
}
+# just so we can use -N as abbreviation for --no-interaction.
+$opt_interaction = 0 if $opt_no_interaction;
+
# informational invocations: help, version, platform
if ($opt_help) {
@@ -991,10 +996,10 @@ sub update_default_paper {
} # update_default_paper
sub update_default_src_doc_install {
- if ($opt_no_src_install) {
+ if (! $opt_src_install) {
$vars{'tlpdbopt_install_srcfiles'} = 0;
}
- if ($opt_no_doc_install) {
+ if (! $opt_doc_install) {
$vars{'tlpdbopt_install_docfiles'} = 0;
}
} # update_default_src_doc_install
@@ -3526,13 +3531,28 @@ The defaults vary slightly on Macs, as explained above in L</OPTIONS>.
For more on the directory trees and their intended usage, see the main
TeX Live documentation at L<https://tug.org/texlive/doc>.
+=head1 BUGS
+
+The C<install-tl> script copies itself into the installed tree.
+Usually, it can be run from there, using the installed tree as the
+source for another installation. Occasionally, however, there may be
+incompatibilities in the code of the new C<install-tl> and the
+infrastructure, resulting in (typically) inscrutable Perl errors. The
+way forward is to run C<install-tl> out of the installer package
+(C<install-tl-unx.tar.gz> or C<install-tl.zip>) instead of the
+installation. Feel free to also report the bug and generally the code
+can be easily synced up again.
+
+By the way, do not try to use C<install-tl> to adjust options or
+installed packaged in an existing installed tree. Use C<tlmgr> instead.
+
=head1 AUTHORS AND COPYRIGHT
This script and its documentation were written for the TeX Live
distribution (L<https://tug.org/texlive>) and both are licensed under the
GNU General Public License Version 2 or later.
-$Id: install-tl 63643 2022-06-18 21:43:37Z karl $
+$Id: install-tl 63655 2022-06-19 21:51:29Z karl $
=cut
# to remake HTML version: pod2html --cachedir=/tmp install-tl >/tmp/itl.html