blob: a3df180b71c103c895029259ee833c8f9af8fb1c [file] [log] [blame]
#!/bin/sh -efu
cwd="$(readlink -ev "${0%/*}")"
cd "$cwd"
rc=0
temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")"
./libkeymap-bkeymap "@DATADIR@/"../data/keymaps/i386/qwerty/defkeymap.map > "$temp" || rc=$?
cmp -s "@DATADIR@/dumpkeys.bkeymap.bin" "$temp" || rc=$?
if [ "$rc" != 0 ]; then
printf 'failed\n'
else
rm -f -- "$temp"
fi
exit $rc