#!/bin/sh # Architectural Form: test ArcBridA: # Resolving IDREFs (series: af-12 - af-15) # 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-12.sgml af-12.dtd af-meta-12.dtd" cat <af-12.sgml verse 1 verse 2 note on verse 2 EOF cat <af-12.dtd EOF cat <af-meta-12.dtd EOF tmpfiles="$tmpfiles af-12-onsgmls.out" : ${ONSGMLS=onsgmls} ${ONSGMLS} >af-12-onsgmls.out -A open af-12.sgml tmpfiles="$tmpfiles af-12-onsgmls.ok" cat <af-12-onsgmls.ok (OPEN (STANZA AN CDATA N1 (VERSE -verse 1 )VERSE AN CDATA N2 (VERSE -verse 2 )VERSE )STANZA (NOTES AR CDATA N2 (I -note on verse 2 )I )NOTES )OPEN C EOF : ${DIFF=diff} ${DIFF} af-12-onsgmls.ok af-12-onsgmls.out result=$? test $result = 0 || { rm -fr $tmpfiles; exit 1; } tmpfiles="$tmpfiles af-12-norm.out" : ${OSGMLNORM=osgmlnorm} ${OSGMLNORM} >af-12-norm.out -A open af-12.sgml tmpfiles="$tmpfiles af-12-norm.ok" cat <af-12-norm.ok verse 1 verse 2 note on verse 2 EOF ${DIFF} af-12-norm.ok af-12-norm.out result=$? test $result = 0 || result=$(($result + 1)) rm -fr $tmpfiles exit $result