Exemple #1
0
def clump_dir_to_tarball(dirpath):
  clump = ClumpInfo(join(dirpath, "clump.yaml"))
  tarfilepath = join(backend.tarball_dest(), clump.tarfilename)
  tar = tarfile.open(tarfilepath, "w:gz")
  tar.add(dirpath, clump.untardir)
  tar.close()
  return tarfilepath
Exemple #2
0
def clump_dir_to_tarball(dirpath):
    clump = ClumpInfo(join(dirpath, "clump.yaml"))
    tarfilepath = join(backend.tarball_dest(), clump.tarfilename)
    tar = tarfile.open(tarfilepath, "w:gz")
    tar.add(dirpath, clump.untardir)
    tar.close()
    return tarfilepath
Exemple #3
0
def main():
    parser = argparse.ArgumentParser(
        description="Cross Linux Uniform Mutual Packager")
    parser.add_argument('clumpath', help="Path to source clump directory")
    srcpath = parser.parse_args().clumpath
    if os.path.isdir(srcpath):
        srcpath = clump_dir_to_tarball(srcpath)
    clump = clumpball_info(srcpath)
    tarpath = join(backend.tarball_dest(), clump.tarfilename)
    if not os.path.exists(tarpath) or not os.path.samefile(srcpath, tarpath):
        shutil.copy(srcpath, tarpath)
    backend.build(clump)
Exemple #4
0
def main():
  parser = argparse.ArgumentParser(
    description="Cross Linux Uniform Mutual Packager")
  parser.add_argument('clumpath',
                      help="Path to source clump directory")
  srcpath = parser.parse_args().clumpath
  if os.path.isdir(srcpath):
    srcpath = clump_dir_to_tarball(srcpath)
  clump = clumpball_info(srcpath)
  tarpath = join(backend.tarball_dest(), clump.tarfilename)
  if not os.path.exists(tarpath) or not os.path.samefile(srcpath, tarpath):
    shutil.copy(srcpath, tarpath)
  backend.build(clump)