mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-12-26 21:59:15 +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"
|