]> spindle.queued.net Git - midori/commitdiff
Catch incompatible waf early, ie. with a globally installed waf
authorChristian Dywan <christian@twotoasts.de>
Mon, 19 Jan 2009 00:12:43 +0000 (01:12 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 19 Jan 2009 00:12:43 +0000 (01:12 +0100)
wscript

diff --git a/wscript b/wscript
index 0f924741fc0f3989072b57ed2f3901109ed13851..f3eb8c0912a679fd6e7b296885e40aeb574f2231 100644 (file)
--- a/wscript
+++ b/wscript
@@ -2,11 +2,21 @@
 # WAF build script for midori
 # This file is licensed under the terms of the expat license, see the file EXPAT.
 
+import sys
+
+# Waf version check, for global waf installs
+try:
+    from Constants import WAFVERSION
+except:
+    WAFVERSION='1.0.0'
+if WAFVERSION[:3] != '1.5':
+    print 'Incompatible Waf, use 1.5'
+    sys.exit (1)
+
 import Build
 import Options
 import Utils
 import pproc as subprocess
-import sys
 import os
 import UnitTest