调整编译脚本,-pkg编译失败不会继续打包

This commit is contained in:
chenzhikai
2023-12-23 14:53:53 +08:00
committed by zhang_xubo
parent acb8abca0c
commit 4f64f84380

View File

@ -88,8 +88,13 @@ echo "ROOT_DIR : $ROOT_DIR"
cd build/script
chmod a+x build_opengauss.sh
./build_opengauss.sh -m ${build_version_mode} -3rd ${build_binarylib_dir} ${not_optimized} -pkg server -pm ${product_mode}
if [ "${wrap_binaries}"X = "YES"X ]
then
if [ $? -ne 0 ]; then
echo "build_opengauss.sh failed, aborting."
exit 1
fi
if [ "${wrap_binaries}"X = "YES"X ]; then
chmod a+x package_opengauss.sh
if [ X$config_file = "X" ];then
./package_opengauss.sh -3rd ${build_binarylib_dir} -m ${build_version_mode} -pm ${product_mode}