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

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_extconv=$BinDir/extconv$ExeExt

# pre-generated test results in the repository are stored in LF
# but the output might be written in CRLF on some platform.
# if 'diff --strip-trailing-cr' is available, exploit it.
# (useful for tests on win32 binaries run on MSYS shell)
DIFF="diff"
$DIFF --strip-trailing-cr $0 $0 \
  && DIFF="diff --strip-trailing-cr" || echo

$_extconv <$srcdir/tests/extconv.tex >extconv.cjk \
	&& $DIFF extconv.cjk $srcdir/tests/extconv.cjk \
	|| exit 1