texlive[63655] Master/install-tl: -N: alias for --no-interaction.
commits+karl at tug.org
commits+karl at tug.org
Sun Jun 19 23:51:29 CEST 2022
Revision: 63655
http://tug.org/svn/texlive?view=revision&revision=63655
Author: karl
Date: 2022-06-19 23:51:29 +0200 (Sun, 19 Jun 2022)
Log Message:
-----------
-N: alias for --no-interaction.
-{doc,src}-install: support positive forms as well as with --no.
(BUGS): new doc section mentionining the possibility of incompatibility
between the (perpetually development version) install-tl and the
installed *.pm.
Modified Paths:
--------------
trunk/Master/install-tl
Modified: trunk/Master/install-tl
===================================================================
--- trunk/Master/install-tl 2022-06-19 21:06:27 UTC (rev 63654)
+++ trunk/Master/install-tl 2022-06-19 21:51:29 UTC (rev 63655)
@@ -283,6 +283,7 @@
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_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_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 @@
"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,9 +396,8 @@
"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,
@@ -403,8 +404,9 @@
"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 @@
$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 @@
} # 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,6 +3531,21 @@
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
More information about the tex-live-commits
mailing list.