Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bjam
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-09-09 15:00:13 +0400
committerKenneth Heafield <github@kheafield.com>2012-09-09 15:00:13 +0400
commitbe76c67f96aa123ab7dda613f4a3b9f9d1beb329 (patch)
treeee0bd1a0568faa415e3c994192961cc5b3080b5d /bjam
parentdca9d8952d7b32350e92d34b537c4f8204adc727 (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-xbjam3
1 files changed, 2 insertions, 1 deletions
diff --git a/bjam b/bjam
index eda8970dc..2b0232c8a 100755
--- a/bjam
+++ b/bjam
@@ -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}" "$@"