makepkg: use type -p's return value for PATH checks
commit95145d4c52e5a6bb22fbb396f5d6584a7e87b75b
authorAndres P <aepd87@gmail.com>
Thu, 27 May 2010 15:06:08 +0000 (27 10:36 -0430)
committerAllan McRae <allan@archlinux.org>
Thu, 17 Jun 2010 04:34:57 +0000 (17 14:34 +1000)
treecd95a77a81266951da53a255acf7b09b26ed23a4
parent3c8816f74b75d2ffdfd4eb6825a55620220a159c
makepkg: use type -p's return value for PATH checks

Rely on type -p's return value instead of a string check.

And gettext was previously being checked with type -t, which was
inconsistent with the rest of the tests pertaining commands that aren't
expected to be functions nor builtins.

Signed-off-by: Andres P <aepd87@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
scripts/makepkg.sh.in