Commit b169439a authored by Emmanuele Bassi's avatar Emmanuele Bassi

Fix handling of builddir for Autotools projects

We're clearing the use_builddir variable. Thanks, Python.
parent 1bc32dde
......@@ -179,11 +179,11 @@ def main(args):
doesnot_support_builddir = _has_buildapi_configure_variable('no-builddir')
if doesnot_support_builddir:
log("Found no-builddir Build API variable; copying source tree to _build")
if os.path.isdir('_build'):
shutil.rmtree('_build')
shutil.copytree('.', '_build', symlinks=True,
ignore=shutil.ignore_patterns('_build'))
use_builddir = False
if os.path.isdir('_build'):
shutil.rmtree('_build')
shutil.copytree('.', '_build', symlinks=True,
ignore=shutil.ignore_patterns('_build'))
use_builddir = False
if use_builddir:
log("Using build directory %r" % (builddir, ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment