Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bjam
diff options
context:
space:
mode:
authorKenneth Heafield <kenlm@kheafield.com>2011-11-21 23:46:39 +0400
committerKenneth Heafield <kenlm@kheafield.com>2011-11-21 23:46:39 +0400
commitc1ffa8ca52435783ffe238d651eba79ea3d0a204 (patch)
tree7414223b790c016dd808e51379a0a0dd520169a3 /bjam
parent5ddd740c16be44e41a82745bfbd0f20428ad0d6f (diff)
BSD doesn't support readlink -f :-(
Diffstat (limited to 'bjam')
-rwxr-xr-xbjam3
1 files changed, 1 insertions, 2 deletions
diff --git a/bjam b/bjam
index 2ae074a4b..d0a49c3f7 100755
--- a/bjam
+++ b/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