diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-09-11 13:43:28 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-09-11 13:43:28 +0400 |
commit | 968ab98f0cfc5890ec8c2d4cfff364263e0ac326 (patch) | |
tree | 3245db958749bec877323e8e28449686b953f930 /jam-files/sanity.jam | |
parent | 278f452d31c09bf1427f3532ea5c61098d3c3db1 (diff) |
Make --with-regtest work without an argument, fix path handling
Diffstat (limited to 'jam-files/sanity.jam')
-rw-r--r-- | jam-files/sanity.jam | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/jam-files/sanity.jam b/jam-files/sanity.jam index 8ccfc65d3..7d62bfd40 100644 --- a/jam-files/sanity.jam +++ b/jam-files/sanity.jam @@ -15,6 +15,13 @@ rule _shell ( cmd : extras * ) { return [ trim-nl [ SHELL $(cmd) : $(extras) ] ] ; } +rule shell_or_fail ( cmd ) { + local ret = [ SHELL $(cmd) : exit-status ] ; + if $(ret[2]) != 0 { + exit $(cmd) failed : 1 ; + } +} + cxxflags = [ os.environ "CXXFLAGS" ] ; cflags = [ os.environ "CFLAGS" ] ; ldflags = [ os.environ "LDFLAGS" ] ; |