| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: bibtex.test 67993 2023-08-20 14:27:19Z takuji $ |
| 3 |
# Copyright 2017 Karl Berry <[email protected]> |
| 4 |
# Copyright 2009 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
BinDir=${BinDir:-.} |
| 8 |
ExeExt=${ExeExt:-} |
| 9 |
_bibtex=$BinDir/bibtex$ExeExt |
| 10 |
|
| 11 |
test -d tests || mkdir -p tests |
| 12 |
rm -f tests/xexampl.* |
| 13 |
|
| 14 |
$_bibtex -version || exit 100 |
| 15 |
|
| 16 |
cp $srcdir/tests/exampl.aux tests/xexampl.aux |
| 17 |
|
| 18 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 19 |
BSTINPUTS=$srcdir/tests \ |
| 20 |
BIBINPUTS=$srcdir/tests \ |
| 21 |
$_bibtex tests/xexampl || exit 1 |
| 22 |
diff $srcdir/tests/exampl.bbl tests/xexampl.bbl || exit 2 |
| 23 |
|