def insdoc(*sources): if slot != "0": target = fix_target_path("/usr/share/doc/%s" % fullname) else: target = fix_target_path("/usr/share/doc/%s" % name) shelltools.makedirs(target) srcs = [] for source in sources: srcs.extend(glob.glob(joinpath(build_dir, source))) return shelltools.install_readable(srcs, target)
def insfile(source, target): target = fix_target_path(target) source = fix_source_path(source, allowed_paths=[filesdir, src_cache]) shelltools.makedirs(os.path.dirname(target)) return shelltools.install_readable([source], target)
def insinfo(*sources): target = fix_target_path("/usr/share/info") shelltools.makedirs(os.path.dirname(target)) return shelltools.install_readable(sources, target)