diff options
author | Norbert Preining <preining@logic.at> | 2016-06-15 01:41:40 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2016-06-15 01:41:40 +0000 |
commit | 98e52513e8f808d70ea5c440d6d9573877aff87e (patch) | |
tree | 2cea06b45e7d6d00873a967250c2c6f06f98d0cd /Master/install-tl | |
parent | cd4e84f99b328742edc054a0a7c3256fb8d169fd (diff) |
install-tl: check for -x of program instead of tetex package install
git-svn-id: svn://tug.org/texlive/trunk@41455 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl')
-rwxr-xr-x | Master/install-tl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/install-tl b/Master/install-tl index ae2a67ac402..5bac6e2bdbf 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -926,6 +926,7 @@ operations might be disturbed.\n\n"; my $plat_bindir = "$TEXDIR/bin/$vars{'this_platform'}"; my $perl_bindir = "$TEXDIR/tlpkg/tlperl/bin"; my $perl_libdir = "$TEXDIR/tlpkg/tlperl/lib"; + my $progext = (win32)? '.exe' : ''; debug("Prepending $plat_bindir to PATH\n"); $ENV{'PATH'} = $plat_bindir . $pathsep . $ENV{'PATH'}; @@ -1008,7 +1009,7 @@ operations might be disturbed.\n\n"; $errcount += wsystem("running", "mktexlsr", $TEXMFSYSVAR, $TEXMFSYSCONFIG, "$TEXDIR/texmf-dist"); - if (exists($install{"tetex"}) && $install{"tetex"} == 1) { + if (-x "$plat_bindir/updmap-sys$progext") { $errcount += run_postinst_cmd("updmap-sys --nohash"); } else { info("not running updmap-sys (not installed)\n"); @@ -1037,7 +1038,7 @@ operations might be disturbed.\n\n"; # all formats option if ($vars{'option_fmt'}) { - if (exists($install{"tetex"}) && $install{"tetex"} == 1) { + if (-x "$plat_bindir/fmtutil-sys$progext") { info("pre-generating all format files, be patient...\n"); $errcount += run_postinst_cmd("fmtutil-sys $common_fmtutil_args --all"); } else { |