1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# -*- mode: python -*-
import os
import SCons
Import('env')
env = env.Clone()
install_dir = env.Dir('$DESTDIR/$PREFIX_BINDIR').path.replace("\\", r"\\")
resmoke_py = env.Substfile(
target="resmoke.py",
source='resmoke.py.in',
SUBST_DICT={
'@install_dir@': install_dir,
},
)
resmoke_py_install = env.AutoInstall(
'$PREFIX_BINDIR',
source=resmoke_py,
AIB_COMPONENT='common',
AIB_ROLE='runtime',
)
# TODO SERVER-61013: We shouldn't have to setattr this once AutoInstall is a
# real builder
setattr(resmoke_py_install[0].attributes, 'AIB_NO_ARCHIVE', True)
env.AddPostAction(
resmoke_py_install,
action=SCons.Defaults.Chmod('$TARGET', "u+x"),
)
|