Skip to content

Commit

Permalink
scons: Made out-of-tree builds with -Y option work
Browse files Browse the repository at this point in the history
  • Loading branch information
loonycyborg committed Mar 22, 2014
1 parent fa5b916 commit 7116ccf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SConstruct
Expand Up @@ -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"
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 7116ccf

Please sign in to comment.