fixed a few typos and changed all references to c++ project file to be MSVC (entity...
[scons.git] / site_scons / update_build_info.py
blob51b3914265ed71bbca5fbd68d2374d57956f4ac8
1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
6 def update_init_file(env):
7 substitutions = {
8 '__version__': env['VERSION'],
9 "__copyright__": env['COPYRIGHT'],
10 "__developer__": env['DEVELOPER'],
11 "__date__": env['DATE'],
12 "__buildsys__": env['BUILDSYS'],
13 "__revision__": env['REVISION'],
14 "__build__": env['BUILD'],
16 si = env.Textfile(
17 '#SCons/__init__.py',
18 ["%s=\"%s\"" % (k, v) for k, v in substitutions.items()]
19 + [
20 '# make sure compatibility is always in place',
21 'import SCons.compat # noqa',
24 env.Precious(si)
25 env.NoClean(si) # Don't clean this file as it breaks the build.