#!/bin/sh # Architectural Form: test ArcBridF: # Resolving IDREFs # Throw away "stanza" part, keep IDREF as IDREF, bridge required # test onsgmls and osgmlnorm LANG=C; export LANG LC_ALL=C; export LC_ALL tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles af-15.sgml af-15.dtd af-meta-15.dtd" cat <af-15.sgml verse 1 verse 2 note on verse 2 EOF cat <af-15.dtd EOF cat <af-meta-15.dtd EOF tmpfiles="$tmpfiles af-15-onsgmls.out" : ${ONSGMLS=onsgmls} ${ONSGMLS} >af-15-onsgmls.out -A open af-15.sgml tmpfiles="$tmpfiles af-15-onsgmls.ok" cat <af-15-onsgmls.ok (OPEN AN TOKEN N1 (BRIDGE -verse 1 )BRIDGE AN TOKEN N2 (BRIDGE -verse 2 )BRIDGE (NOTES AR TOKEN N2 (I -note on verse 2 )I )NOTES )OPEN C EOF : ${DIFF=diff} ${DIFF} af-15-onsgmls.ok af-15-onsgmls.out result=$? test $result = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles af-15-norm.out" : ${OSGMLNORM=osgmlnorm} ${OSGMLNORM} >af-15-norm.out -A open af-15.sgml tmpfiles="$tmpfiles af-15-norm.ok" cat <af-15-norm.ok verse 1 verse 2 note on verse 2 EOF ${DIFF} af-15-norm.ok af-15-norm.out result=$? test $result = 0 || result=$(($result + 1)) rm -fr $tmpfiles exit $result