Mercurial > hg > paul
comparison 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 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:2aa53823fb21 |
|---|---|
| 1 #!/bin/sh | |
| 2 # trivial normalise-and-compare | |
| 3 sw= | |
| 4 while : | |
| 5 do | |
| 6 case "$1" in | |
| 7 -p) | |
| 8 f=-w ; shift ;; | |
| 9 -?*) | |
| 10 sw=$1 ; shift ;; | |
| 11 *) | |
| 12 break ;; | |
| 13 esac | |
| 14 done | |
| 15 normXML $f "$1" > /tmp/xd$$ | |
| 16 normXML $f "$2" | diff $sw /tmp/xd$$ - | |
| 17 rm /tmp/xd$$ |
