示例#1
0
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)
示例#2
0
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)
示例#3
0
def insinfo(*sources):
    target = fix_target_path("/usr/share/info")
    shelltools.makedirs(os.path.dirname(target))
    return shelltools.install_readable(sources, target)