aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf/qtest/qpdf/diff-ignore-ID-version
blob: 72def443eb95e7ccb7bf1621b9339e84497ad81c (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh
lines=$(expr 0 + $(diff "$1" "$2" | egrep '^[<>]' | \
        egrep -v '/ID' | egrep -v '%PDF-' | wc -l))
if [ "$lines" = "0" ]; then
   echo okay
else
   diff -a -U 0 "$1" "$2"
fi