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
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-07-31 00:47:30 +0400
committerKenneth Heafield <github@kheafield.com>2012-07-31 00:47:30 +0400
commitedf34e9d35425ca627ed19e1415172258ca82cc5 (patch)
tree27060f4a96c30b2bf568e70b8cc5899f736f1908 /jam-files
parent1d6fa9178a473171e22d9d678c343e4f5fa79aae (diff)
Loosen requirements for system bjam versions / Tom Hoar
Diffstat (limited to 'jam-files')
-rw-r--r--jam-files/sanity.jam10
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 ;
+ }
+}