mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
Jon Clark put . in his path
This commit is contained in:
parent
becf9f466a
commit
5ddd740c16
9
bjam
9
bjam
@ -1,7 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
#This checks for bjam including boost-build.
|
||||
if bjam --help >/dev/null 2>/dev/null; then
|
||||
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
|
||||
bjam --help >/dev/null 2>/dev/null #bjam in path isn't broken (i.e. has boost-build)
|
||||
then
|
||||
#Delegate to system bjam
|
||||
exec bjam "$@"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user