fix_lite_release_scrpit

This commit is contained in:
sunsuodong 2021-06-01 14:42:46 +08:00
parent ad165deb15
commit 4f474b54af
1 changed files with 0 additions and 6 deletions

View File

@ -82,20 +82,16 @@ function linux_release_package()
{ {
src_inference_pkg_name="mindspore-lite-${version}-inference-linux-x64" src_inference_pkg_name="mindspore-lite-${version}-inference-linux-x64"
src_train_pkg_name="mindspore-lite-${version}-train-linux-x64" src_train_pkg_name="mindspore-lite-${version}-train-linux-x64"
src_jar_pkg_name="mindspore-lite-${version}-inference-linux-x64-jar"
dst_pkg_name="mindspore-lite-${version}-linux-x64" dst_pkg_name="mindspore-lite-${version}-linux-x64"
rm -rf ${src_inference_pkg_name} rm -rf ${src_inference_pkg_name}
rm -rf ${src_train_pkg_name} rm -rf ${src_train_pkg_name}
rm -rf ${src_jar_pkg_name}
rm -rf ${dst_pkg_name} rm -rf ${dst_pkg_name}
tar -xzf ${input_path}/ubuntu_x86/avx/${src_inference_pkg_name}.tar.gz tar -xzf ${input_path}/ubuntu_x86/avx/${src_inference_pkg_name}.tar.gz
tar -xzf ${input_path}/ubuntu_x86/${src_train_pkg_name}.tar.gz tar -xzf ${input_path}/ubuntu_x86/${src_train_pkg_name}.tar.gz
tar -xzf ${input_path}/aar/avx/${src_jar_pkg_name}.tar.gz
cp -r ${src_train_pkg_name}/tools/benchmark_train/ ${src_inference_pkg_name}/tools/ cp -r ${src_train_pkg_name}/tools/benchmark_train/ ${src_inference_pkg_name}/tools/
cp -r ${src_train_pkg_name}/train/ ${src_inference_pkg_name}/ cp -r ${src_train_pkg_name}/train/ ${src_inference_pkg_name}/
cp -r ${src_jar_pkg_name}/jar/ ${src_inference_pkg_name}/inference/lib/
mkdir -p ${output_path}/release/linux/ mkdir -p ${output_path}/release/linux/
mv ${src_inference_pkg_name} ${dst_pkg_name} mv ${src_inference_pkg_name} ${dst_pkg_name}
@ -106,9 +102,7 @@ function linux_release_package()
verify_every_file ${src_train_pkg_name}/tools/benchmark_train/ ${dst_pkg_name} verify_every_file ${src_train_pkg_name}/tools/benchmark_train/ ${dst_pkg_name}
verify_every_file ${src_train_pkg_name}/train/ ${dst_pkg_name} verify_every_file ${src_train_pkg_name}/train/ ${dst_pkg_name}
verify_every_file ${src_jar_pkg_name}/ ${dst_pkg_name}
rm -rf ${src_train_pkg_name} rm -rf ${src_train_pkg_name}
rm -rf ${src_jar_pkg_name}
rm -rf ${dst_pkg_name} rm -rf ${dst_pkg_name}
} }