diff options
-rwxr-xr-x | bootstrap | 8 | ||||
-rwxr-xr-x | tests/xorg-test-run.sh | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -1,27 +1,27 @@ #!/bin/sh -which autoconf +command -v autoconf if ! test $? -eq 0 then echo "error, install autoconf" exit 1 fi -which automake +command -v automake if ! test $? -eq 0 then echo "error, install automake" exit 1 fi -which libtool || which libtoolize +command -v libtool || command -v libtoolize if ! test $? -eq 0 then echo "error, install libtool" exit 1 fi -which pkg-config +command -v pkg-config if ! test $? -eq 0 then echo "error, install pkg-config" diff --git a/tests/xorg-test-run.sh b/tests/xorg-test-run.sh index 9ca9fdb..338ff76 100755 --- a/tests/xorg-test-run.sh +++ b/tests/xorg-test-run.sh @@ -43,7 +43,7 @@ XORG_ARGS="$@" # If the X server has setuid bit, make a local copy -XORG_FULL=`which $XORG` +XORG_FULL=`command -v $XORG` if test -u $XORG_FULL; then XORG=`pwd`/Xorg.no-setuid echo "$XORG_FULL has setuid bit set, will use $XORG" |