only look for executables, that makes more sense and removes a lot of matches, with...
authorFabian Groffen <grobian@gentoo.org>
Wed, 16 Sep 2009 18:11:06 +0000 (18:11 -0000)
committerFabian Groffen <grobian@gentoo.org>
Wed, 16 Sep 2009 18:11:06 +0000 (18:11 -0000)
svn path=/main/branches/prefix/; revision=14275

bin/misc-functions.sh

index 14e9edad1756ab4f5135616b46a4a4707857d4ec..675a6c577766b58a2806fb1dd693fac3b9d003ca 100644 (file)
@@ -483,14 +483,15 @@ install_qa_check() {
                rm -f "${T}"/non-prefix-shebangs-errs
                local WHITELIST=" /usr/bin/env "
                # this is hell expensive, but how else?
-               find "${ED}" -type f | xargs grep -H -n -m1 "^#!" | while read f ; do
+               find "${ED}" -type f -executable \
+                               | xargs grep -H -n -m1 "^#!" \
+                               | while read f ;
+               do
                        fn=${f%%:*}
                        pos=${f#*:} ; pos=${pos%:*}
                        line=${f##*:}
                        # shebang always appears on the first line ;)
                        [[ ${pos} != 1 ]] && continue
-                       # remove some paths that often contain false positives
-                       [[ ${fn} == "${ED}usr/share/doc/"* ]] && continue
                        line=( ${line#"#!"} )
                        [[ ${WHITELIST} == *" ${line[0]} "* ]] && continue
                        # does the shebang start with ${EPREFIX}?