15 lines
412 B
Python
15 lines
412 B
Python
#!/usr/bin/python
|
|
from config import *
|
|
|
|
f = open("version.h", "w")
|
|
for line in open("version.tmpl", "r"):
|
|
line = line.replace("__MAJOR__", str(MAJOR))
|
|
line = line.replace("__MINOR__", str(MINOR))
|
|
line = line.replace("__BUG__", str(BUG))
|
|
line = line.replace("__EXTRA__", str(EXTRA))
|
|
line = line.replace("__VERSION__", str(version))
|
|
f.write(line)
|
|
f.close()
|
|
|
|
env.Append(CPPPATH = os.path.join(os.getcwd()))
|