#! /bin/sh -vx # $Id$ # Copyright 2021-2025 TANAKA Takuji # Copyright 2017-2022 Karl Berry # Copyright 2013 Peter Breitenlohner # You may freely use, modify and/or distribute this file. BinDir=${BinDir:-.} ExeExt=${ExeExt:-} _upmendex=$BinDir/upmendex$ExeExt TEXMFCNF=$srcdir/../kpathsea export TEXMFCNF rm -f foo.* uni.* tort*.* rc=0 $_upmendex $srcdir/tests/foo.idx -o foo.ind1 -t foo.ilg1 \ && diff $srcdir/tests/foo.ind foo.ind1 || rc=1 cat $srcdir/tests/foo.idx | $_upmendex >foo.ind2 2>foo.ilg2 \ && diff $srcdir/tests/foo.ind foo.ind2 || rc=2 $_upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni.ist \ $srcdir/tests/uni.idx -o uni.ind1 -t uni.ilg1 \ && diff $srcdir/tests/uni.ind uni.ind1 || rc=3 cat $srcdir/tests/uni.idx | \ $_upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni.ist \ >uni.ind2 2>uni.ilg2 \ && diff $srcdir/tests/uni.ind uni.ind2 || rc=4 $_upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni1.ist -s $srcdir/tests/uni2.ist \ $srcdir/tests/uni.idx -o uni.ind3 -t uni.ilg3 \ && diff $srcdir/tests/uni.ind uni.ind3 || rc=5 $_upmendex $srcdir/tests/tort.idx -o tort.ind1 -t tort.ilg1 \ && rc=20 #$_upmendex $srcdir/tests/tort.idx -o tort.ind1 -t tort.ilg1 \ # && diff $srcdir/tests/ok-tort.ind tort.ind1 || : $_upmendex $srcdir/tests/tortW.idx -o tortW.ind1 -t tortW.ilg1 \ && diff $srcdir/tests/ok-tort.ind tortW.ind1 || : $_upmendex $srcdir/tests/tort.idx -s $srcdir/tests/head1.ist -o tort2.ind1 -t tort2.ilg1 \ && diff $srcdir/tests/ok-tort2.ind tort2.ind1 || : $_upmendex $srcdir/tests/tortW.idx -s $srcdir/tests/head1.ist -o tortW2.ind1 -t tortW2.ilg1 \ && diff $srcdir/tests/ok-tort2.ind tortW2.ind1 || : exit $rc