| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: bibtex-auxinclude.test 67993 2023-08-20 14:27:19Z takuji $ |
| 3 |
# Copyright 2018 Karl Berry <[email protected]> |
| 4 |
# You may freely use, modify and/or distribute this file. |
| 5 |
|
| 6 |
BinDir=${BinDir:-.} |
| 7 |
ExeExt=${ExeExt:-} |
| 8 |
_bibtex=$BinDir/bibtex$ExeExt |
| 9 |
|
| 10 |
test -d tests || mkdir -p tests |
| 11 |
|
| 12 |
# in case we're invoked standalone instead of from make. |
| 13 |
test -z "$srcdir" && srcdir=`cd \`dirname $0\`/.. && pwd` |
| 14 |
|
| 15 |
cp $srcdir/tests/auxinclude.aux tests/xauxinclude.aux || exit 1 |
| 16 |
cp $srcdir/tests/auxinclude2.aux tests/auxinclude2.aux || exit 1 |
| 17 |
|
| 18 |
# [x]auxinclude.aux includes \@input{auxinclude2.aux}, to be found in |
| 19 |
# the ./tests/ (working) subdir, which should be automatically checked |
| 20 |
# since we invoke bibtex on tests/whatever.aux. See thread from |
| 21 |
# http://tug.org/pipermail/tex-live/2018-May/041624.html. |
| 22 |
# |
| 23 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 24 |
BSTINPUTS=$srcdir/tests \ |
| 25 |
BIBINPUTS=$srcdir/tests \ |
| 26 |
$_bibtex tests/xauxinclude || exit 1 |