scons: Made out-of-tree builds with -Y option work
This commit is contained in:
parent
fa5b916bf1
commit
7116ccf9ef
1 changed files with 4 additions and 3 deletions
|
@ -110,8 +110,9 @@ opts.AddVariables(
|
|||
# Setup
|
||||
#
|
||||
|
||||
sys.path.insert(0, "./scons")
|
||||
env = Environment(tools=["tar", "gettext", "install", "python_devel", "scanreplace"], options = opts, toolpath = ["scons"])
|
||||
toolpath = ["scons"] + map(lambda x : x.abspath + "/scons", Dir(".").repositories)
|
||||
sys.path = toolpath + sys.path
|
||||
env = Environment(tools=["tar", "gettext", "install", "python_devel", "scanreplace"], options = opts, toolpath = toolpath)
|
||||
|
||||
if env["lockfile"]:
|
||||
print "Creating lockfile"
|
||||
|
@ -550,7 +551,7 @@ def CopyFilter(fn):
|
|||
|
||||
env["copy_filter"] = CopyFilter
|
||||
|
||||
linguas = Split(open("po/LINGUAS").read())
|
||||
linguas = Split(File("po/LINGUAS").get_contents())
|
||||
|
||||
def InstallManpages(env, component):
|
||||
env.InstallData("mandir", component, os.path.join("doc", "man", component + ".6"), "man6")
|
||||
|
|
Loading…
Add table
Reference in a new issue