From 7ee8dbc044218c4364e0fe401328800b130e4ece Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 4 Oct 2012 09:42:25 +0000 Subject: abuild: postcheck for textrels --- abuild.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'abuild.in') diff --git a/abuild.in b/abuild.in index 5c4ff56..e3e749b 100755 --- a/abuild.in +++ b/abuild.in @@ -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 } -- cgit v1.2.3-70-g09d2