texlive[63586] Master/install-tl: install-tl: various changes
commits+preining at tug.org
commits+preining at tug.org
Tue Jun 14 03:04:46 CEST 2022
Revision: 63586
http://tug.org/svn/texlive?view=revision&revision=63586
Author: preining
Date: 2022-06-14 03:04:46 +0200 (Tue, 14 Jun 2022)
Log Message:
-----------
install-tl: various changes
- support --no-src-install
- support --no-doc-install
- make --usertexdir and --texmfhome behave similar to the
--texdir and --texmflocal (etc), in that the more specific
is allowed to override the more general
- document new command line options
Modified Paths:
--------------
trunk/Master/install-tl
Modified: trunk/Master/install-tl
===================================================================
--- trunk/Master/install-tl 2022-06-13 23:50:00 UTC (rev 63585)
+++ trunk/Master/install-tl 2022-06-14 01:04:46 UTC (rev 63586)
@@ -292,6 +292,8 @@
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_nonadmin = 0;
my $opt_paper = "";
my $opt_persistent_downloads = 1;
@@ -391,6 +393,8 @@
"location|url|repository|repos|repo=s" => \$opt_location,
"no-cls", # $::opt_no_cls in install-menu-text-pl
"no-gui" => \$opt_no_gui,
+ "no-doc-install" => \$opt_no_doc_install,
+ "no-src-install" => \$opt_no_src_install,
"non-admin" => \$opt_nonadmin,
"paper=s" => \$opt_paper,
"persistent-downloads!" => \$opt_persistent_downloads,
@@ -491,13 +495,14 @@
die "$0: Incompatible options init-from-profile and in-place.\n"
if ($opt_in_place && $opt_init_from_profile);
-die "$0: Incompatible options: texuserdir ($opt_texuserdir) and "
- . "any of texmfhome, texmfconfig, texmfvar ("
- . "$pathopts{'texmfhome'}, $pathopts{'texmfvar'}, $pathopts{'texmfconfig'}"
- . ").\n"
- if ($opt_texuserdir &&
- ($pathopts{'texmfhome'} || $pathopts{'texmfvar'}
- || $pathopts{'texmfconfig'}));
+# We now allow --texuserdir XXX --texmfhome YYYY
+# die "$0: Incompatible options: texuserdir ($opt_texuserdir) and "
+# . "any of texmfhome, texmfconfig, texmfvar ("
+# . "$pathopts{'texmfhome'}, $pathopts{'texmfvar'}, $pathopts{'texmfconfig'}"
+# . ").\n"
+# if ($opt_texuserdir &&
+# ($pathopts{'texmfhome'} || $pathopts{'texmfvar'}
+# || $pathopts{'texmfconfig'}));
if ($#ARGV >= 0) {
die "$0: Extra arguments `@ARGV'; try --help if you need it.\n";
@@ -936,6 +941,7 @@
update_default_scheme();
update_default_paper();
+ update_default_src_doc_install();
} # final_remote_init
sub update_default_scheme {
@@ -977,6 +983,16 @@
}
} # update_default_paper
+sub update_default_src_doc_install {
+ if ($opt_no_src_install) {
+ $vars{'tlpdbopt_install_srcfiles'} = 0;
+ }
+ if ($opt_no_doc_install) {
+ $vars{'tlpdbopt_install_docfiles'} = 0;
+ }
+} # update_default_src_doc_install
+
+
sub do_installation {
if (win32()) {
@@ -1699,13 +1715,12 @@
my $homedir = (platform() =~ m/darwin/) ? "~/Library" : "~";
my $yyyy = $TeXLive::TLConfig::ReleaseYear;
#
- # We already checked that either $opt_texuserdir xor at least one of the
- # directory options (texmfhome, texmfvar, texmfconfig) is set. In case
- # $opt_texuserdir is set, assign the respective values to texmfhome etc.
+ # If the --texuserdir is given, assign values to texmfhome/var/config
+ # unless the separate cmd line options are also present.
if ($opt_texuserdir) {
- $pathopts{'texmfhome'} = "$opt_texuserdir/texmf";
- $pathopts{'texmfvar'} = "$opt_texuserdir/texmf-var";
- $pathopts{'texmfconfig'} = "$opt_texuserdir/texmf-config";
+ $pathopts{'texmfhome'} = "$opt_texuserdir/texmf" if (!$pathopts{'texmfhome'});
+ $pathopts{'texmfvar'} = "$opt_texuserdir/texmf-var" if (!$pathopts{'texmfvar'});
+ $pathopts{'texmfconfig'} = "$opt_texuserdir/texmf-config" if (!$pathopts{'texmfconfig'});
}
#
# Sources of target directory settings in priority order:
@@ -3076,6 +3091,13 @@
reinstallation will succeed later. If this option is specified, and the
retry fails, the installer aborts.
+=item B<-no-doc-install>
+
+=item B<-no-src-install>
+
+Do not install source/doc files and set the options to not install source/doc
+files in the saved database.
+
=item B<-no-installation>
Do not perform any installation. This is for debugging the
More information about the tex-live-commits
mailing list.