| 1 |
#!/bin/sh -vx |
| 2 |
# $Id: cnfnewline.test 68082 2023-08-27 14:18:10Z takuji $ |
| 3 |
# Copyright 2017 Karl Berry <[email protected]> |
| 4 |
# Copyright 2013 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
BinDir=${BinDir:-.} |
| 8 |
ExeExt=${ExeExt:-} |
| 9 |
_kpsewhich=$BinDir/kpsewhich$ExeExt |
| 10 |
|
| 11 |
TEXMFCNF=$srcdir/tests/cnfnewline; export TEXMFCNF |
| 12 |
cnf_dir=$srcdir/tests/cnfnewline |
| 13 |
|
| 14 |
val=`$_kpsewhich "--cnf-line=TEXMFCNF=$cnf_dir" --debug=-1 --var-value=lastvar` |
| 15 |
if [ "$ExeExt" = ".exe" ]; then val=`echo $val | sed -e 's/\\r//'`; fi |
| 16 |
test x"$val" = xlastval || exit 1 |
| 17 |
|
| 18 |
# verbose for testing. |
| 19 |
#if test x"$val" = xlastval; then |
| 20 |
# echo "$0: ok" |
| 21 |
#else |
| 22 |
# echo "$0: bad, got \`$val'" |
| 23 |
# exit 1 |
| 24 |
#fi |