added release.txt blurb. Fixed spelling typo in Defaults.xml
[scons.git] / test / Actions / pre-post-fixture / work3 / SConstruct
blob54f537ac8deda1be9f8ce842d4123ea89523e538
1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
5 def pre(target, source, env):
6 pass
8 def post(target, source, env):
9 pass
11 def build(target, source, env):
12 with open(str(target[0]), 'wb') as f:
13 f.write(b'build()\n')
15 DefaultEnvironment(tools=[])
16 env = Environment(tools=[])
17 AddPreAction('dir', pre)
18 AddPostAction('dir', post)
19 env.Command('dir/file', [], build)