Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xorgxrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilke Schwiedop <drwilly@drwilly.de>2021-11-30 21:42:54 +0300
committerWilke Schwiedop <drwilly@drwilly.de>2021-11-30 21:42:54 +0300
commitcf40e21edafa7ed94d8a1b83f52b5ca5b92b5322 (patch)
tree874b83dd80e1ac35578dd4010526da89f26a7773
parentd9f08ead9faf736eb93ff0b4b2ae407b03c0b790 (diff)
remove calls to non-posix tool `which`
`which` is a non-posix tool that might not be present in restricted build-environments. It can however be fully replaced by the posix shell-builtin `command -v`.
-rwxr-xr-xbootstrap8
-rwxr-xr-xtests/xorg-test-run.sh2
2 files changed, 5 insertions, 5 deletions
diff --git a/bootstrap b/bootstrap
index be61972..73e2c2d 100755
--- a/bootstrap
+++ b/bootstrap
@@ -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"