#! /bin/sh -vx # $Id: cefsconv.test 67910 2023-08-13 13:51:08Z takuji $ # Copyright 2017-2018 Karl Berry # Copyright 2011 Peter Breitenlohner # You may freely use, modify and/or distribute this file. BinDir=${BinDir:-.} ExeExt=${ExeExt:-} _cefsconv=$BinDir/cefsconv$ExeExt _sjisconv=$BinDir/sjisconv$ExeExt _cefconv=$BinDir/cefconv$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 LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE $_cefsconv <$srcdir/tests/cefsconv.tex >cefsconv.cjk \ && $DIFF cefsconv.cjk $srcdir/tests/cefsconv.cjk \ || exit 1 $_sjisconv <$srcdir/tests/cefsconv.tex | $_cefconv \ | sed 's/cefconv.*sjisconv/cefsconv/' >cefsconv.cjk \ && $DIFF cefsconv.cjk $srcdir/tests/cefsconv.cjk \ || exit 1 $_cefconv <$srcdir/tests/cefsconv.tex | $_sjisconv \ | sed 's/CJKpreproc.*CNSpreproc/CNSpreproc/;s/cefconv/cefsconv/' >cefsconv.cjk \ && $DIFF cefsconv.cjk $srcdir/tests/cefsconv.cjk \ || exit 1