#! /bin/sh -vx # $Id: charwd.test 67982 2023-08-19 15:10:25Z takuji $ # Copyright 2017 Karl Berry # Copyright 2010, 2011 Peter Breitenlohner # You may freely use, modify and/or distribute this file. BinDir=${BinDir:-.} ExeExt=${ExeExt:-} _omfonts=$BinDir/omfonts$ExeExt tests=tests test -d $tests || mkdir -p $tests rc=0 grep -v 'CHARWD R' $srcdir/$tests/charwd-r.pl >$tests/charwdr.pl TEXMFCNF=$srcdir/../../kpathsea \ $_omfonts -opl2ofm $tests/charwdr.pl $tests/charwdr.tfm || rc=1 TEXMFCNF=$srcdir/../../kpathsea \ TFMFONTS=$tests \ $_omfonts -ofm2opl $tests/charwdr.tfm $tests/charwdr.xpl || rc=2 diff $srcdir/$tests/charwd-r.pl $tests/charwdr.xpl || rc=3 grep -v 'CHARWD R' $srcdir/$tests/charwd-v.vpl >$tests/charwdv.vpl TEXMFCNF=$srcdir/../../kpathsea \ $_omfonts -ovp2ovf $tests/charwdv.vpl $tests/charwdv.vf $tests/charwdv.tfm || rc=4 TEXMFCNF=$srcdir/../../kpathsea \ TFMFONTS=$tests \ $_omfonts -ofm2opl $tests/charwdr.tfm $tests/charwdr.xpl || rc=5 diff $srcdir/$tests/charwd-r.pl $tests/charwdr.xpl || rc=6 TEXMFCNF=$srcdir/../../kpathsea \ TFMFONTS=$tests \ VFFONTS=$tests \ $_omfonts -ovf2ovp $tests/charwdv.vf $tests/charwdv.tfm $tests/charwdv.xpl || rc=7 diff $srcdir/$tests/charwd-v.vpl $tests/charwdv.xpl || rc=8 exit $rc