Use internal bjam on broken machines that have bjam but not boost-build

This commit is contained in:
Kenneth Heafield 2011-11-21 13:30:00 -05:00
parent a65ed7e587
commit becf9f466a

5
bjam
View File

@ -1,6 +1,9 @@
#!/bin/bash
set -e
which bjam >/dev/null 2>/dev/null && exec bjam "$@"
#This checks for bjam including boost-build.
if bjam --help >/dev/null 2>/dev/null; then
exec bjam "$@"
fi
top="$(dirname "$0")"
if [ ! -x "$top"/jam-files/bjam ]; then