diff options
author | Kenneth Heafield <kenlm@kheafield.com> | 2011-11-21 23:41:10 +0400 |
---|---|---|
committer | Kenneth Heafield <kenlm@kheafield.com> | 2011-11-21 23:41:10 +0400 |
commit | 5ddd740c16be44e41a82745bfbd0f20428ad0d6f (patch) | |
tree | 033898c93700f6ab4f06b68de45c886a45ed5b19 /bjam | |
parent | becf9f466ae6dd983d2245bc1860beb78ba52120 (diff) |
Jon Clark put . in his path
Diffstat (limited to 'bjam')
-rwxr-xr-x | bjam | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |