summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLUtils.pm
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-05-06 23:06:56 +0000
committerKarl Berry <karl@freefriends.org>2017-05-06 23:06:56 +0000
commit8e3c883d6f9fcb929960fd6c3a168363f5c48f3e (patch)
tree615e3bde7a62c931b1f029cd8247b0619b991dcb /Master/tlpkg/TeXLive/TLUtils.pm
parent0381fcffb4dd9ececaf0deccb031bca6fe2f6cf9 (diff)
doc, copyright 2017
git-svn-id: svn://tug.org/texlive/trunk@44232 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLUtils.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLUtils.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm
index 520fb1f88bb..d1880caa9fa 100644
--- a/Master/tlpkg/TeXLive/TLUtils.pm
+++ b/Master/tlpkg/TeXLive/TLUtils.pm
@@ -1,6 +1,6 @@
# $Id$
# TeXLive::TLUtils.pm - the inevitable utilities for TeX Live.
-# Copyright 2007-2016 Norbert Preining, Reinhard Kotucha
+# Copyright 2007-2017 Norbert Preining, Reinhard Kotucha
# This file is licensed under the GNU General Public License version 2
# or any later version.
@@ -4066,7 +4066,12 @@ sub setup_sys_user_mode {
=item C<prepend_own_path()>
-Prepends the location of the TeX Live binaries to the PATH environment variable.
+Prepend the location of the TeX Live binaries to the PATH environment
+variable. This is used by (e.g.) C<fmtutil>. The location is found by
+calling C<Cwd::abs_path> on C<which('kpsewhich')>. We use kpsewhich
+because it is known to be a true binary executable; C<$0> could be a
+symlink into (say) C<texmf-dist/scripts/>, which is not a useful
+directory for PATH.
=cut