Beispiel #1
0
def dist():
    shutil.rmtree(config.get_dist_dir(), ignore_errors=True)

    modules = config.load_modules()
    for module in modules:
        if not _dist_module(module):
            return False

    return True
Beispiel #2
0
def _autotools_dist_builder(module):
    source_dir = module.get_source_dir()

    os.chdir(source_dir)
    command.run(["make", "distcheck"])

    makefile = parse_makefile(os.path.join(source_dir, "Makefile"))
    tarball = "%s-%s.tar.xz" % (module.name, makefile["VERSION"])

    shutil.move(os.path.join(source_dir, tarball),
                os.path.join(config.get_dist_dir(), tarball))

    return True