summaryrefslogtreecommitdiffhomepage
path: root/sofort
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-17 03:00:22 +0000
committermidipix <writeonce@midipix.org>2019-10-17 03:01:30 +0000
commita408d8827534c905de726588b7b0f9c5df5f62d7 (patch)
tree244a0adea2f6b70f7c5e556f24869c3203ba05ac /sofort
parentbb656525e5c7c895657702648edef326f6413b26 (diff)
downloadslibtool-a408d8827534c905de726588b7b0f9c5df5f62d7.tar.bz2
slibtool-a408d8827534c905de726588b7b0f9c5df5f62d7.tar.xz
build system: ccenv.sh: accommodate pattern caveats of old ash(1).
Diffstat (limited to 'sofort')
-rw-r--r--sofort/ccenv/ccenv.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index e56b452..3295bc4 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -53,12 +53,15 @@ ccenv_find_tool()
if [ -z "$ccenv_prefixes" ]; then
for ccenv_tool in $ccenv_candidates; do
if [ -z ${@:-} ]; then
- command -v "$ccenv_tool" > /dev/null && \
+ if command -v "$ccenv_tool" > /dev/null; then
return 0
+ fi
else
- command -v "$ccenv_tool" > /dev/null && \
- "$ccenv_tool" $@ > /dev/null 2>&1 && \
+ if command -v "$ccenv_tool" > /dev/null; then
+ if "$ccenv_tool" $@ > /dev/null 2>&1; then
return 0
+ fi
+ fi
fi
done
@@ -70,12 +73,17 @@ ccenv_find_tool()
for ccenv_prefix in $ccenv_prefixes; do
for ccenv_candidate in $ccenv_candidates; do
ccenv_tool="$ccenv_prefix$ccenv_candidate"
- command -v "$ccenv_tool" > /dev/null && return 0
+
+ if command -v "$ccenv_tool" > /dev/null; then
+ return 0
+ fi
done
done
for ccenv_tool in $ccenv_candidates; do
- command -v "$ccenv_tool" > /dev/null && return 0
+ if command -v "$ccenv_tool" > /dev/null; then
+ return 0
+ fi
done
ccenv_tool=false