diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-05-23 07:16:33 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-05-23 07:16:33 +0000 |
commit | 0572dd7e487908f56a5aa755f90bbbf134387d0d (patch) | |
tree | cc1e3e1773e653729bdd8ff4595a94986c1a513c /Build/source/texk/web2c/ptexdir | |
parent | 85722e162ab8bc579a5d6e199ea7d70ebc5d2bec (diff) |
self test (make check): Cope with spaces in paths returned by kpathsea
git-svn-id: svn://tug.org/texlive/trunk@26589 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/ptexdir')
-rw-r--r-- | Build/source/texk/web2c/ptexdir/ChangeLog | 5 | ||||
-rwxr-xr-x | Build/source/texk/web2c/ptexdir/pdvitype.test | 4 | ||||
-rwxr-xr-x | Build/source/texk/web2c/ptexdir/sample.test | 7 |
3 files changed, 12 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/ptexdir/ChangeLog b/Build/source/texk/web2c/ptexdir/ChangeLog index a7df7f65e05..c025b9843a7 100644 --- a/Build/source/texk/web2c/ptexdir/ChangeLog +++ b/Build/source/texk/web2c/ptexdir/ChangeLog @@ -1,3 +1,8 @@ +2012-05-22 Peter Breitenlohner <peb@mppmu.mpg.de> + + * pdvitype.test, sample.test: Cope with spaces in paths returned + by kpsewhich. + 2012-05-12 Peter Breitenlohner <peb@mppmu.mpg.de> * ptex-base.ch: Restore the 'unnecessary and seemingly wrong' diff --git a/Build/source/texk/web2c/ptexdir/pdvitype.test b/Build/source/texk/web2c/ptexdir/pdvitype.test index 602ed66ea96..86066c2b23e 100755 --- a/Build/source/texk/web2c/ptexdir/pdvitype.test +++ b/Build/source/texk/web2c/ptexdir/pdvitype.test @@ -1,6 +1,6 @@ #! /bin/sh -# Copyright (C) 2010 Peter Breitenlohner <tex-live@tug.org> +# Copyright (C) 2010-2012 Peter Breitenlohner <tex-live@tug.org> # You may freely use, modify and/or distribute this file. test -d tests || mkdir -p tests @@ -8,7 +8,7 @@ test -d tests || mkdir -p tests if tfmpath=`$KPSEWHICH cmbx10.tfm`; then TEXMFCNF=$srcdir/../kpathsea \ - TFMFONTS=`dirname $tfmpath` \ + TFMFONTS=`dirname "$tfmpath"` \ ./pdvitype -show-opcodes $srcdir/tests/story >tests/xstory.dvityp || exit 1 fi diff --git a/Build/source/texk/web2c/ptexdir/sample.test b/Build/source/texk/web2c/ptexdir/sample.test index 9a377607cba..97cde057e01 100755 --- a/Build/source/texk/web2c/ptexdir/sample.test +++ b/Build/source/texk/web2c/ptexdir/sample.test @@ -1,16 +1,19 @@ #! /bin/sh -# Copyright (C) 2010 Peter Breitenlohner <tex-live@tug.org> +# Copyright (C) 2010-2012 Peter Breitenlohner <tex-live@tug.org> # You may freely use, modify and/or distribute this file. test -d tests || mkdir -p tests tfmpath=`$KPSEWHICH cmbx10.tfm` || exit 77 +tfmparent=`dirname "$tfmpath"` +tfmgrandparent=`dirname "$tfmparent"` + # Test inputs testdir=$srcdir/ptexdir/tests TEXMFCNF=$srcdir/../kpathsea \ - TFMFONTS=$testdir:`dirname \`dirname \\\`dirname $tfmpath\\\`\``// \ + TFMFONTS=$testdir:`dirname "$tfmgrandparent"`// \ ./pdvitype -show-opcodes $testdir/sample >tests/xsample.typ || exit 1 |