diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-07-31 00:47:30 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-07-31 00:47:30 +0400 |
commit | edf34e9d35425ca627ed19e1415172258ca82cc5 (patch) | |
tree | 27060f4a96c30b2bf568e70b8cc5899f736f1908 /jam-files | |
parent | 1d6fa9178a473171e22d9d678c343e4f5fa79aae (diff) |
Loosen requirements for system bjam versions / Tom Hoar
Diffstat (limited to 'jam-files')
-rw-r--r-- | jam-files/sanity.jam | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jam-files/sanity.jam b/jam-files/sanity.jam index c846bec6c..817e52689 100644 --- a/jam-files/sanity.jam +++ b/jam-files/sanity.jam @@ -4,6 +4,7 @@ import os ; import path ; import project ; import build-system ; +import version ; #Shell with trailing line removed http://lists.boost.org/boost-build/2007/08/17051.php rule trim-nl ( str extras * ) { @@ -244,3 +245,12 @@ rule always-if-changed ( file current : targets * ) { } } } + +if [ option.get "sanity-test" : : "yes" ] { + local current_version = [ modules.peek : JAM_VERSION ] ; + if ( $(current_version[0]) < 2000 && [ version.check-jam-version 3 1 16 ] ) || [ version.check-jam-version 2011 0 0 ] { + EXIT "Sane" : 0 ; + } else { + EXIT "Bad" : 1 ; + } +} |