summarylogtreecommitdiffstats
path: root/edid-generator.sh
blob: 67dbf49edb9068cd2b5518cbeee97362174defdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

set -e

_libdir="/usr/lib/edid-generator"
_workdir="$(mktemp --tmpdir=/tmp -d edid-generator-XXXX)"

cp "${_libdir}"/{Makefile,edid.S,hex} "${_workdir}"/

cd "${_workdir}"

"${_libdir}/modeline2edid" "$@"

printf '\n'
make
printf '\n'

printf '%s\n' "Output files are in '${_workdir}'."
printf '\n'
printf '%s\n' "Specifically, it are:"
ls -1 *.bin | while read _f; do
  printf '%s\n' "* '${_workdir}/${_f}'"
done