2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-02 10:20:52 +00:00
qpdf/qpdf/qtest/qpdf/diff-ignore-ID-version
Andreas Stieger 7049588bff Fix tests with GNU grep 3.8
GNU grep 3.8 started to emit warnings when invoking egrep.
Convert all calls to grep -E.
2022-09-09 06:57:38 -04:00

9 lines
197 B
Bash
Executable File

#!/bin/sh
lines=$(expr 0 + $(diff "$1" "$2" | grep -E '^[<>]' | \
grep -E -v '/ID' | grep -E -v '%PDF-' | wc -l))
if [ "$lines" = "0" ]; then
echo okay
else
diff -a -U 0 "$1" "$2"
fi