提交 a5292015 编写于 作者: Y yejianwu

fix package libs

上级 5147dab5
...@@ -974,20 +974,18 @@ def packaging_lib(libmace_output_dir, project_name): ...@@ -974,20 +974,18 @@ def packaging_lib(libmace_output_dir, project_name):
print("Start packaging '%s' libs into %s" % (project_name, print("Start packaging '%s' libs into %s" % (project_name,
tar_package_path)) tar_package_path))
# ls ${project_dir} -1 | grep -v build | grep -v .tar.gz | xargs -I {} \ stdout_buff = []
# tar cvzf ${project_dir}/${tar_package_name} ${project_name}/{} process_output = make_output_processor(stdout_buff)
sh.xargs( p = sh.tar(
sh.grep(
sh.grep(
sh.ls(project_dir, "-1"),
"-v", "build"),
"-v", ".tar.gz"),
"-I",
"{}",
"tar",
"cvzf", "cvzf",
"%s" % tar_package_path, "%s" % tar_package_path,
"%s/{}" % project_dir) glob.glob("%s/*" % project_dir),
"--exclude",
"%s/build" % project_dir,
_out=process_output,
_bg=True,
_err_to_out=True)
p.wait()
print("Packaging Done!\n") print("Packaging Done!\n")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册