File: edid-print-check.sh

package info (click to toggle)
libdisplay-info 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,460 kB
  • sloc: ansic: 10,055; python: 294; sh: 131; makefile: 3
file content (13 lines) | stat: -rwxr-xr-x 209 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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"