mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-11-16 19:48:30 +01:00
14 lines
209 B
Bash
14 lines
209 B
Bash
|
#!/bin/sh -eu
|
||
|
|
||
|
workdir="$(mktemp -d)"
|
||
|
cleanup() {
|
||
|
rm -rf "$workdir"
|
||
|
}
|
||
|
trap cleanup EXIT
|
||
|
|
||
|
edid="$1"
|
||
|
ref="${edid%.edid}.print"
|
||
|
"$DI_EDID_PRINT" <"$edid" >"$workdir/printout"
|
||
|
|
||
|
diff -u "$ref" "$workdir/printout"
|