mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
Reverse order of checks for Tom Hoar
This commit is contained in:
parent
1cbf457685
commit
4b6eda0a8e
4
bjam
4
bjam
@ -4,8 +4,8 @@ if
|
|||||||
bjam="$(which bjam 2>/dev/null)" && #exists
|
bjam="$(which bjam 2>/dev/null)" && #exists
|
||||||
[ ${#bjam} != 0 ] && #paranoia about which printing nothing then returning true
|
[ ${#bjam} != 0 ] && #paranoia about which printing nothing then returning true
|
||||||
! grep UFIHGUFIHBDJKNCFZXAEVA "${bjam}" </dev/null >/dev/null && #bjam in path isn't this script
|
! grep UFIHGUFIHBDJKNCFZXAEVA "${bjam}" </dev/null >/dev/null && #bjam in path isn't this script
|
||||||
"${bjam}" --help >/dev/null 2>/dev/null && #bjam in path isn't broken (i.e. has boost-build)
|
"${bjam}" --version |grep "Boost.Build 201" >/dev/null 2>/dev/null && #It's recent enough.
|
||||||
"${bjam}" --version |grep "Boost.Build 201" >/dev/null 2>/dev/null #It's recent enough.
|
"${bjam}" --help >/dev/null 2>/dev/null #bjam in path isn't broken (i.e. has boost-build)
|
||||||
then
|
then
|
||||||
#Delegate to system bjam
|
#Delegate to system bjam
|
||||||
exec "${bjam}" "$@"
|
exec "${bjam}" "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user