[SCM] Debian packaging of texlive-nonbin) branch, master, updated. debian/2013.20130523-1-11-g0fdcb3d
The following commit has been merged in the master branch:
commit 0fdcb3d2b2045ad76f0d8d40fea79e6a62c623dc
Author: Norbert Preining <preining@debian.org>
Date: Thu May 30 08:59:32 2013 +0900
use TEXMFDIST instead of non-existing path
diff --git a/texlive-base/debian/tl-paper b/texlive-base/debian/tl-paper
index 7fc5223..53f3ed1 100644
--- a/texlive-base/debian/tl-paper
+++ b/texlive-base/debian/tl-paper
@@ -74,14 +74,14 @@ sub main {
usage();
exit 1;
}
- # set TEXMFVAR and TEXMFSYSVAR to something completely absurd
+ # set TEXMFVAR and TEXMFSYSVAR to TEXMFDIST (which is == TEXMFMAIN)
# so that we always find either the system provided config file
# as distributed in /usr/share/texlive/texmf-dist, or, if the
# admin decided to override that, a copy in TEXMFSYSCONFIG
# but *not* the one we have created at some point in history
# in TEXMF(SYS)VAR
- $ENV{"TEXMFVAR"} = "/does/hopefully/not/exists/on/any/system";
- $ENV{"TEXMFSYSVAR"} = "/does/hopefully/not/exists/on/any/system";
+ chomp(my $texmfdist = `kpsewhich -var-value=TEXMFDIST`);
+ $ENV{"TEXMFVAR"} = $ENV{"TEXMFSYSVAR"} = $texmfdist;
if ($prg =~ m/^all$/i) {
if ($newpaper !~ /^(a4|letter)$/) {
# we cannot deal with that for now, only a4|letter supported for
--
Debian packaging of texlive-nonbin)
Reply to: