echo doc/man/man3/$${m}.3: manpage-has-bad-whatis-entry; \
fi; \
done || echo "WARNING!: Cannot detect manpage errors on `uname`"
-
+
pyldns: _ldns.la
$(pywrapdir)/ldns_wrapper.c: $(PYLDNS_I_FILES) ldns/config.h
tpkg -b test clean
test: @TEST_P5_DNS_LDNS@
- if test -x "`which bash`"; then bash test/test_all.sh; else sh test/test_all.sh; fi
+ if test -x "`command -v bash`"; then bash test/test_all.sh; else sh test/test_all.sh; fi
# Recreate symbols file, only needed when API changes
# test if 'tool' is available in path and complain otherwise.
# $1: tool
test_tool_avail () {
- if test ! -x "`which $1 2>&1`"; then
+ if test ! -x "`command -v $1 2>&1`"; then
echo No "$1" in path
exit 1
fi
# get ldns-testns tool in LDNS_TESTNS variable.
get_ldns_testns () {
- if test -x "`which ldns-testns 2>&1`"; then
+ if test -x "`command -v ldns-testns 2>&1`"; then
LDNS_TESTNS=ldns-testns
else
LDNS_TESTNS=/home/wouter/bin/ldns-testns
# get make tool in MAKE variable, gmake is used if present.
get_make () {
- if test -x "`which gmake 2>&1`"; then
+ if test -x "`command -v gmake 2>&1`"; then
MAKE=gmake
else
MAKE=make
# get cc tool in CC variable, gcc is used if present.
get_gcc () {
- if test -x "`which gcc 2>&1`"; then
+ if test -x "`command -v gcc 2>&1`"; then
CC=gcc
else
CC=cc
# get pcat, pcat-print and pcat-diff
get_pcat () {
- PCAT=`which pcat`
- PCAT_PRINT=`which pcat-print`
- PCAT_DIFF=`which pcat-diff`
+ PCAT=`command -v pcat`
+ PCAT_PRINT=`command -v pcat-print`
+ PCAT_DIFF=`command -v pcat-diff`
}
# set SKIP=1 if the name is in list and tool is not available.
# #3: name of the tool required.
skip_if_in_list () {
if echo $2 | grep $1 >/dev/null; then
- if test ! -x "`which $3 2>&1`"; then
+ if test ! -x "`command -v $3 2>&1`"; then
SKIP=1;
fi
fi
if [ -z "$TPKG" -o ! -x "$TPKG" ]
then
- if which tpkg > /dev/null ; then TPKG=`which tpkg`
+ if which tpkg > /dev/null ; then TPKG=`command -v tpkg`
elif [ -x $HOME/bin/tpkg ] ; then TPKG=$HOME/bin/tpkg
elif [ -x $HOME/local/bin/tpkg ]; then TPKG=$HOME/local/bin/tpkg
elif [ -x /home/tpkg/bin/tpkg ] ; then TPKG=/home/tpkg/bin/tpkg
for test in `ls *.tpkg`; do
SKIP=0
if echo $NEED_SPLINT | grep $test >/dev/null; then
- if test ! -x "`which splint`"; then
+ if test ! -x "`command -v splint`"; then
SKIP=1;
fi
fi
if echo $NEED_DOXYGEN | grep $test >/dev/null; then
- if test ! -x "`which doxygen`"; then
+ if test ! -x "`command -v doxygen`"; then
SKIP=1;
fi
fi