cfg/.config/sanity.d/makefile-autohook.sh
Knut Ahlers b7e83d8269
Add sanity check framework
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-09-06 13:36:10 +02:00

17 lines
315 B
Bash

function sanity_makefile_contains_autohook() {
report debug "Check for auto-hook in Makefile"
[[ -f Makefile ]] || {
report debug "No Makefile found"
return 0
}
grep '^auto-hook-' Makefile || {
report success "No auto-hooks found"
return 0
}
report error "Makefile contains auto-hooks"
return 1
}