def html_tarball(builder, conf): if conf.project.name == 'mms' and mms_should_migrate(builder, conf) is False: return False copy_if_needed( os.path.join(conf.paths.projectroot, conf.paths.includes, 'hash.rst'), os.path.join(conf.paths.projectroot, conf.paths.branch_output, 'html', 'release.txt')) basename = os.path.join( conf.paths.projectroot, conf.paths.public_site_output, conf.project.name + '-' + conf.git.branches.current) tarball_name = basename + '.tar.gz' tarball(name=tarball_name, path='html', cdir=os.path.join(conf.paths.projectroot, conf.paths.branch_output), sourcep='html', newp=os.path.basename(basename)) create_link(input_fn=os.path.basename(tarball_name), output_fn=os.path.join(conf.paths.projectroot, conf.paths.public_site_output, conf.project.name + '.tar.gz'))
def html_tarball(conf): release_fn = os.path.join(conf.paths.projectroot, conf.paths.output, 'html', 'release.txt') with open(release_fn, 'w') as f: f.write(conf.git.commit) basename = os.path.join(conf.paths.projectroot, conf.paths.public, conf.project.name + '-' + conf.git.branches.current) tarball_name = basename + '.tar.gz' tarball(name=tarball_name, path='html', cdir=os.path.join(conf.paths.projectroot, conf.paths.output), sourcep='html', newp=os.path.basename(basename)) create_link(input_fn=os.path.basename(tarball_name), output_fn=os.path.join(conf.paths.projectroot, conf.paths.public, conf.project.name + '.tar.gz'))
def html_tarball(builder, conf): if conf.project.name == 'mms' and mms_should_migrate(builder, conf) is False: return False copy_if_needed(os.path.join(conf.paths.projectroot, conf.paths.includes, 'hash.rst'), os.path.join(conf.paths.projectroot, conf.paths.branch_output, 'html', 'release.txt')) basename = os.path.join(conf.paths.projectroot, conf.paths.public_site_output, conf.project.name + '-' + conf.git.branches.current) tarball_name = basename + '.tar.gz' tarball(name=tarball_name, path='html', cdir=os.path.join(conf.paths.projectroot, conf.paths.branch_output), sourcep='html', newp=os.path.basename(basename)) create_link(input_fn=os.path.basename(tarball_name), output_fn=os.path.join(conf.paths.projectroot, conf.paths.public_site_output, conf.project.name + '.tar.gz'))
def finalize_epub_build(builder, conf): epub_name = '-'.join(conf.project.title.lower().split()) epub_branched_filename = epub_name + '-' + conf.git.branches.current + '.epub' epub_src_filename = epub_name + '.epub' copy_if_needed(source_file=os.path.join(conf.paths.projectroot, conf.paths.branch_output, builder, epub_src_filename), target_file=os.path.join(conf.paths.projectroot, conf.paths.public_site_output, epub_branched_filename)) create_link(input_fn=epub_branched_filename, output_fn=os.path.join(conf.paths.projectroot, conf.paths.public_site_output, epub_src_filename))
def man_tarball(builder, conf): basename = os.path.join(conf.paths.projectroot, conf.paths.public_site_output, 'manpages-' + conf.git.branches.current) tarball_name = basename + '.tar.gz' tarball(name=tarball_name, path=builder, cdir=os.path.join(conf.paths.projectroot, conf.paths.branch_output), newp=conf.project.name + '-manpages') create_link(input_fn=os.path.basename(tarball_name), output_fn=os.path.join(conf.paths.projectroot, conf.paths.public_site_output, 'manpages' + '.tar.gz'))
def create_manual_symlink(conf): iconf = BuildConfiguration(filename='integration.yaml', directory=os.path.join(conf.paths.projectroot, conf.paths.builddata)) if 'base' not in iconf: return True else: if 'links' not in iconf.base: return True else: links = get_top_level_links(iconf.base.links, conf) if links: for name, target in links: create_link(target, name)
def finalize_epub_build(conf): epub_name = '-'.join(conf.project.title.lower().split()) epub_branched_filename = epub_name + '-' + conf.git.branches.current + '.epub' epub_src_filename = epub_name + '.epub' if conf.project.name == 'mms' and mms_should_migrate(builder, conf) is False: return False copy_if_needed(source_file=os.path.join(conf.paths.projectroot, conf.paths.branch_output, 'epub', epub_src_filename), target_file=os.path.join(conf.paths.projectroot, conf.paths.public_site_output, epub_branched_filename)) create_link(input_fn=epub_branched_filename, output_fn=os.path.join(conf.paths.projectroot, conf.paths.public_site_output, epub_src_filename))
def man_tarball(conf): basename = os.path.join(conf.paths.projectroot, conf.paths.branch_output, 'manpages-' + conf.git.branches.current) tarball_name = basename + '.tar.gz' tarball(name=tarball_name, path='man', cdir=os.path.dirname(basename), sourcep='man', newp=conf.project.name + '-manpages') copy_if_needed( tarball_name, os.path.join(conf.paths.projectroot, conf.paths.public_site_output, os.path.basename(tarball_name))) create_link(input_fn=os.path.basename(tarball_name), output_fn=os.path.join(conf.paths.projectroot, conf.paths.public_site_output, 'manpages' + '.tar.gz'))
def man_tarball(conf): basename = os.path.join(conf.paths.projectroot, conf.paths.branch_output, 'manpages-' + conf.git.branches.current) tarball_name = basename + '.tar.gz' tarball(name=tarball_name, path='man', cdir=os.path.dirname(basename), sourcep='man', newp=conf.project.name + '-manpages') copy_if_needed(tarball_name, os.path.join(conf.paths.projectroot, conf.paths.public_site_output, os.path.basename(tarball_name))) create_link(input_fn=os.path.basename(tarball_name), output_fn=os.path.join(conf.paths.projectroot, conf.paths.public_site_output, 'manpages' + '.tar.gz'))
def html_tarball(builder, conf): copy_if_needed(os.path.join(conf.paths.projectroot, conf.paths.includes, 'hash.rst'), os.path.join(conf.paths.projectroot, conf.paths.branch_output, builder, 'release.txt')) basename = os.path.join(conf.paths.projectroot, conf.paths.public_site_output, conf.project.name + '-' + conf.git.branches.current) tarball_name = basename + '.tar.gz' tarball(name=tarball_name, path=builder, cdir=os.path.join(conf.paths.projectroot, conf.paths.branch_output), newp=os.path.basename(basename)) create_link(input_fn=os.path.basename(tarball_name), output_fn=os.path.join(conf.paths.projectroot, conf.paths.public_site_output, conf.project.name + '.tar.gz'))