pull version number from VERSION file
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 18 May 2007 20:48:24 +0200
changeset 659 ae1c85bcb33e
parent 656 01ccd5f47ed4
child 660 8aaf62962dcf
pull version number from VERSION file
SConstruct
VERSION
--- a/SConstruct	Fri May 18 18:06:00 2007 +0200
+++ b/SConstruct	Fri May 18 20:48:24 2007 +0200
@@ -2,9 +2,13 @@
 import os.path
 import build
 
+version_file = open ('VERSION', 'r')
+version = version_file.read (5)
+version_file.close ()
+
 ns3 = build.Ns3()
 ns3.build_dir = 'build-dir'
-ns3.version = '3.0.2'
+ns3.version = version
 ns3.name = 'ns3'
 ns3.distname = 'ns'
 ns3.doxygen_config = os.path.join('doc', 'doxygen.conf')
--- a/VERSION	Fri May 18 18:06:00 2007 +0200
+++ b/VERSION	Fri May 18 20:48:24 2007 +0200
@@ -1,1 +1,1 @@
-3.0.1
+3.0.2