diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-09-09 15:00:13 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-09-09 15:00:13 +0400 |
commit | be76c67f96aa123ab7dda613f4a3b9f9d1beb329 (patch) | |
tree | ee0bd1a0568faa415e3c994192961cc5b3080b5d /bjam | |
parent | dca9d8952d7b32350e92d34b537c4f8204adc727 (diff) |
Old buggy bjam always returns 0. Detect+reject.
http://boost.2283326.n4.nabble.com/bjam-exit-code-always-zero-td2696668.html
Diffstat (limited to 'bjam')
-rwxr-xr-x | bjam | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,8 @@ if bjam="$(which bjam 2>/dev/null)" && #exists [ ${#bjam} != 0 ] && #paranoia about which printing nothing then returning true ! grep UFIHGUFIHBDJKNCFZXAEVA "${bjam}" </dev/null >/dev/null && #bjam in path isn't this script - "${bjam}" --sanity-test 2>/dev/null |grep Sane >/dev/null #The test in jam-files/sanity.jam passes + "${bjam}" --sanity-test 2>/dev/null |grep Sane >/dev/null && #The test in jam-files/sanity.jam passes + (cd jam-files/fail && ! "${bjam}") >/dev/null #Returns non-zero on failure then #Delegate to system bjam exec "${bjam}" "$@" |