view bin/xmlDiff @ 0:2aa53823fb21

new repo
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 06 Jun 2026 10:19:04 +0100
parents
children
line wrap: on
line source

#!/bin/sh
# trivial normalise-and-compare
sw=
while :
 do
   case "$1" in
    -p)
     f=-w ; shift ;;
    -?*)
     sw=$1 ; shift ;;
    *)
      break ;;
   esac
done
normXML $f "$1" > /tmp/xd$$
normXML $f "$2" | diff $sw /tmp/xd$$ -
rm /tmp/xd$$