makepkg: improve srcdir check and add pkgdir
commitf2296aab89b12fe49204fba8f62dc8dd2d9e05eb
authorAllan McRae <allan@archlinux.org>
Wed, 29 Sep 2010 11:54:31 +0000 (29 21:54 +1000)
committerDan McGee <dan@archlinux.org>
Tue, 5 Oct 2010 15:58:21 +0000 (5 10:58 -0500)
tree4cae483d57ca36391e5cbdcc3b08c173462e1ee4
parent022ec3dbb76686337969cee6e14113b397987cfa
makepkg: improve srcdir check and add pkgdir

The checking of the package for $srcdir references was overly
sensitive and gave a lot of what appear to be false positives with
binary files (in particular with debugging symbols kept).

Restrict the search for $srcdir to non-binary files as this should
still catch the majority of configuration issues the check was
initially designed to catch. Also, add a similar check for $pkgdir.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/makepkg.sh.in