mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-26 21:59:15 +01:00
18 lines
295 B
Bash
18 lines
295 B
Bash
|
#!/bin/sh -eu
|
||
|
|
||
|
workdir="$(mktemp -d)"
|
||
|
cleanup() {
|
||
|
rm -rf "$workdir"
|
||
|
}
|
||
|
trap cleanup EXIT
|
||
|
|
||
|
edid="$1"
|
||
|
"$REF_EDID_DECODE" -s <"$edid" >"$workdir/ref"
|
||
|
"$DI_EDID_DECODE" <"$edid" >"$workdir/di"
|
||
|
|
||
|
if [ -f "$edid.diff" ]; then
|
||
|
patch "$workdir/ref" "$edid.diff"
|
||
|
fi
|
||
|
|
||
|
diff -u "$workdir/ref" "$workdir/di"
|