diff options
author | Kenneth Heafield <kenlm@kheafield.com> | 2011-11-21 23:46:39 +0400 |
---|---|---|
committer | Kenneth Heafield <kenlm@kheafield.com> | 2011-11-21 23:46:39 +0400 |
commit | c1ffa8ca52435783ffe238d651eba79ea3d0a204 (patch) | |
tree | 7414223b790c016dd808e51379a0a0dd520169a3 /bjam | |
parent | 5ddd740c16be44e41a82745bfbd0f20428ad0d6f (diff) |
BSD doesn't support readlink -f :-(
Diffstat (limited to 'bjam')
-rwxr-xr-x | bjam | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |