mirror of https://github.com/OpenTTD/OpenTTD
(svn r11980) -Fix: newer versions of cut do not accept field index 0
parent
bbdc5a9314
commit
e99c34bef4
|
@ -635,7 +635,7 @@ check_params() {
|
||||||
distcc="$with_distcc"
|
distcc="$with_distcc"
|
||||||
fi
|
fi
|
||||||
if [ "$with_distcc" != "0" ]; then
|
if [ "$with_distcc" != "0" ]; then
|
||||||
res="`$distcc --version 2>/dev/null | head -n 1 | cut -b 0-6`"
|
res="`$distcc --version 2>/dev/null | head -n 1 | cut -b 1-6`"
|
||||||
if [ "$res" != "distcc" ]; then
|
if [ "$res" != "distcc" ]; then
|
||||||
distcc=""
|
distcc=""
|
||||||
log 1 "checking distcc... no"
|
log 1 "checking distcc... no"
|
||||||
|
@ -664,7 +664,7 @@ check_params() {
|
||||||
ccache="$with_ccache"
|
ccache="$with_ccache"
|
||||||
fi
|
fi
|
||||||
if [ "$with_ccache" != "0" ]; then
|
if [ "$with_ccache" != "0" ]; then
|
||||||
res="`$ccache --version 2>/dev/null | head -n 1 | cut -b 0-6`"
|
res="`$ccache --version 2>/dev/null | head -n 1 | cut -b 1-6`"
|
||||||
if [ "$res" != "ccache" ]; then
|
if [ "$res" != "ccache" ]; then
|
||||||
ccache=""
|
ccache=""
|
||||||
log 1 "checking ccache... no"
|
log 1 "checking ccache... no"
|
||||||
|
|
Loading…
Reference in New Issue