~mdw
/
mdw-cross
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5a10b2
)
src/cross.in: Check for `ccache' correctly.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 19 Jul 2020 22:40:44 +0000
(23:40 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 19 Jul 2020 22:40:44 +0000
(23:40 +0100)
Apparently dash(1) thinks `type' on its own is successful, which is why
it seemed to work for me.
src/cross.in
patch
|
blob
|
blame
|
history
diff --git
a/src/cross.in
b/src/cross.in
index
8953c52
..
f221174
100644
(file)
--- a/
src/cross.in
+++ b/
src/cross.in
@@
-14,7
+14,7
@@
if ! [ -f "$CROSSDIR/etc/$env-setup.sh" ]; then
echo 2>&1 "${0##*/}: cross environment \`$env' unknown"; exit 2
fi
-if type >/dev/null 2>&1; then CROSS_COMPILER_PREFIX="ccache "
+if type
ccache
>/dev/null 2>&1; then CROSS_COMPILER_PREFIX="ccache "
else CROSS_COMPILER_PREFIX=
fi
export CROSS_COMPILER_PREFIX