mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
BSD doesn't support readlink -f :-(
This commit is contained in:
parent
5ddd740c16
commit
c1ffa8ca52
3
bjam
3
bjam
@ -1,9 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
self="$(readlink -f "$0")"
|
||||
if
|
||||
which bjam >/dev/null 2>/dev/null && #Have a bjam in path
|
||||
[ "$self" != "$(readlink -f "$(which bjam)")" ] && #bjam in path isn't this script
|
||||
! grep UFIHGUFIHBDJKNCFZXAEVA "$(which bjam)" >/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)
|
||||
then
|
||||
#Delegate to system bjam
|
||||
|
Loading…
Reference in New Issue
Block a user