abuild: postcheck for textrels

This commit is contained in:
Natanael Copa 2012-10-04 09:42:25 +00:00
parent 9b3f778971
commit 7ee8dbc044

View File

@ -581,6 +581,15 @@ postcheck() {
echo "$i"
return 1
fi
# test for textrels
if ! options_has "textrels"; then
local res="$(scanelf --recursive --textrel --quiet "$dir")"
if [ -n "$res" ]; then
error "Found textrels:"
echo "$res"
return 1
fi
fi
return 0
}