Skip to content

Commit aabcddf

Browse files
authored
Merge pull request #204 from drwilly/devel
replace non-posix tool `which` with `command -v`
2 parents d9f08ea + cf40e21 commit aabcddf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bootstrap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
#!/bin/sh
22

3-
which autoconf
3+
command -v autoconf
44
if ! test $? -eq 0
55
then
66
echo "error, install autoconf"
77
exit 1
88
fi
99

10-
which automake
10+
command -v automake
1111
if ! test $? -eq 0
1212
then
1313
echo "error, install automake"
1414
exit 1
1515
fi
1616

17-
which libtool || which libtoolize
17+
command -v libtool || command -v libtoolize
1818
if ! test $? -eq 0
1919
then
2020
echo "error, install libtool"
2121
exit 1
2222
fi
2323

24-
which pkg-config
24+
command -v pkg-config
2525
if ! test $? -eq 0
2626
then
2727
echo "error, install pkg-config"

tests/xorg-test-run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ XORG_ARGS="$@"
4343

4444

4545
# If the X server has setuid bit, make a local copy
46-
XORG_FULL=`which $XORG`
46+
XORG_FULL=`command -v $XORG`
4747
if test -u $XORG_FULL; then
4848
XORG=`pwd`/Xorg.no-setuid
4949
echo "$XORG_FULL has setuid bit set, will use $XORG"

0 commit comments

Comments
 (0)