]> git.lyx.org Git - lyx.git/blobdiff - development/scons/SConstruct
Scons: check minor version number (>=0.96.92)
[lyx.git] / development / scons / SConstruct
index 18f0894eeee6049aa353c582a2cf2b9acdaa558a..465f9cb9fe88b40336a422b1dd4acf7e585eb206 100644 (file)
@@ -24,8 +24,14 @@ import scons_utils as utils
 
 # scons asks for 1.5.2, lyx requires 2.3
 EnsurePythonVersion(2, 3)
-# Please use at least 0.96.91 (not 0.96.1)
+# Please use at least 0.96.92 (not 0.96.1)
 EnsureSConsVersion(0, 96)
+# also check for minor version number for scons 0.96
+from SCons import __version__
+version = map(int, __version__.split('.'))
+if version[0] == 0 and version[1] == 96 and version[2] < 92:
+    print "Scons >= 0.96.92 is required."
+    Exit(1)
 
 # determine where I am ...
 #
@@ -2297,13 +2303,13 @@ if build_po:
     if env.has_key('languages'):
         languages = env.make_list(env['lanauges'])
     # use defulat msgfmt
+    gmo_files = []
     if not env['MSGFMT']:
         print 'msgfmt does not exist. Can not process po files'
     else:
         # create a builder
         env['BUILDERS']['Transfiles'] = Builder(action='$MSGFMT $SOURCE -o $TARGET',suffix='.gmo',src_suffix='.po')
         #
-        gmo_files = []
         for f in transfiles:
             # get filename
             fname = os.path.split(f)[1]