Jon Clark put . in his path

This commit is contained in:
Kenneth Heafield 2011-11-21 14:41:10 -05:00
parent becf9f466a
commit 5ddd740c16

9
bjam
View File

@ -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