summaryrefslogtreecommitdiff
path: root/Build/source/texk/makeindexk/tests/makeindex.test
blob: 0f266aa778bcb067eff85c00291b744a739f3323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh -vx
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2012 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

TEXMFCNF=$srcdir/../kpathsea
export TEXMFCNF

rm -f sample.*

./makeindex $srcdir/tests/sample.idx -o sample.ind1 -t sample.ilg1 \
	&& diff $srcdir/tests/sample.ind sample.ind1 || exit 1

cat $srcdir/tests/sample.idx | ./makeindex >sample.ind2 2>sample.ilg2 \
	&& diff $srcdir/tests/sample.ind sample.ind2 || exit 1