summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-08-06 23:28:35 +0000
committerKarl Berry <karl@freefriends.org>2013-08-06 23:28:35 +0000
commit94c10b4536fc85f4412aca55f7deba68c622a9b0 (patch)
tree31bb2b803bdc9cdec199be77b161ecb12b172b4f
parent31a1ab5cea8b9eecd632b1320274f474b83dad88 (diff)
also check reading a known envvar
git-svn-id: svn://tug.org/texlive/trunk@31368 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/kpathsea/ChangeLog5
-rwxr-xr-xBuild/source/texk/kpathsea/kpsewhich.test5
2 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index 2214f6a374d..a86834b3847 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-07 Karl Berry <karl@tug.org>
+
+ * kpsewhich.test: also check that we can read the environment
+ variable that we set.
+
2013-07-07 TANAKA Takuji <KXD02663@nifty.ne.jp>
* knj.c and progname.c: Generalize the method to avoid the 0x5c problem
diff --git a/Build/source/texk/kpathsea/kpsewhich.test b/Build/source/texk/kpathsea/kpsewhich.test
index 4e7159ec9d2..b15f2b35400 100755
--- a/Build/source/texk/kpathsea/kpsewhich.test
+++ b/Build/source/texk/kpathsea/kpsewhich.test
@@ -1,11 +1,12 @@
#! /bin/sh
-
-# Copyright (C) 2010 Peter Breitenlohner <tex-live@tug.org>
+# Copyright 2010-2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
TEXMFCNF=$srcdir
export TEXMFCNF
+./kpsewhich --var-value=TEXMFCNF || exit 1 # environment variable
+
./kpsewhich --var-value=TEXMFMAIN || exit 1
./kpsewhich --expand-var=\$TEXMFMAIN || exit 1