--- tools/bsdsunix/Makefile.am.orig 2016-12-05 16:21:28 UTC +++ tools/bsdsunix/Makefile.am @@ -0,0 +1,29 @@ +## Process this file with automake to produce Makefile.in + +scriptdir = $(libexecdir)/scripts/bsdsunix + +script_SCRIPTS = \ + hal-system-power-suspend-bsdsunix \ + hal-system-power-shutdown-bsdsunix \ + hal-system-power-reboot-bsdsunix \ + hal-system-lcd-get-brightness-bsdsunix \ + hal-system-lcd-set-brightness-bsdsunix \ + hal-system-power-set-power-save-bsdsunix + +EXTRA_DIST = $(script_SCRIPTS) + +check: + for f in $(script_SCRIPTS); do \ + echo -n "Validate bash syntax in $$f : "; \ + bash -n $(srcdir)/$$f 2> bash.error;\ + if test -s bash.error; then \ + echo failed; \ + cat bash.error; \ + rm -f bash.error; \ + exit 1; \ + else \ + echo ok; \ + rm -f bash.error; \ + fi; \ + done; +