Debian Codegraph @

texk/makeindexk/tests/nest.test

raw
1 #! /bin/sh -vx
2 # $Id: nest.test 77203 2025-12-28 23:00:46Z karl $
3 # Copyright 2024 TANAKA Takuji <[email protected]>
4 # Copyright 2017-2022 Karl Berry <[email protected]>
5 # Copyright 2013 Peter Breitenlohner <[email protected]>
6 # You may freely use, modify and/or distribute this file.
7
8 BinDir=${BinDir:-.}
9 ExeExt=${ExeExt:-}
10 _makeindex=$BinDir/makeindex$ExeExt
11
12 TEXMFCNF=$srcdir/../kpathsea
13 export TEXMFCNF
14
15 rm -f nested*.* toodeep*.*
16 rc=0
17
18 # test for nested items and delimiters
19 $_makeindex -s $srcdir/tests/nested3.ist -o nested3.ind1 -t nested3.ilg $srcdir/tests/nested3.idx \
20 && diff $srcdir/tests/nested3.ind nested3.ind1 || rc=30
21
22 # test for too deep indexentry
23 $_makeindex $srcdir/tests/toodeep.idx -o toodeep.ind1 -t toodeep.ilg
24
25
26 exit $rc