提交 63edf11b 编写于 作者: X xj0 提交者: LINGuanRen

[fix] update RPM.cmake and version upgrade script

上级 83219d74
......@@ -17,10 +17,10 @@ list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/home/admin/oceanbase
set(CPACK_PACKAGE_NAME "oceanbase-ce")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OceanBase CE is a distributed relational database")
set(CPACK_PACKAGE_VENDOR "Ant Group CO., Ltd.")
set(CPACK_PACKAGE_VERSION 3.1.2)
set(CPACK_PACKAGE_VERSION 3.1.3)
set(CPACK_PACKAGE_VERSION_MAJOR 3)
set(CPACK_PACKAGE_VERSION_MINOR 1)
set(CPACK_PACKAGE_VERSION_PATCH 2)
set(CPACK_PACKAGE_VERSION_PATCH 3)
set(CPACK_RPM_PACKAGE_GROUP "Applications/Databases")
set(CPACK_RPM_PACKAGE_URL "https://open.oceanbase.com")
set(CPACK_RPM_PACKAGE_DESCRIPTION "OceanBase CE is a distributed relational database")
......
......@@ -88,3 +88,25 @@ upgrade_post_path="tools/upgrade/upgrade_post.py"
upgrade_pre_path="tools/upgrade/upgrade_pre.py"
sed -i s/admin/xxx/g $upgrade_post_path
sed -i s/admin/xxx/g $upgrade_pre_path
# modify RPM.cmake version
upgrade_rpm_cmake_path="cmake/RPM.cmake"
cur_package_version_str="CPACK_PACKAGE_VERSION "$curr_version
upd_package_version_str="CPACK_PACKAGE_VERSION "$dest_version
major_old_num=`echo $curr_version | awk -F'.' '{print $1}'`
minor_old_num=`echo $curr_version | awk -F'.' '{print $2}'`
patch_old_num=`echo $curr_version | awk -F'.' '{print $3}'`
major_new_num=`echo $dest_version | awk -F'.' '{print $1}'`
minor_new_num=`echo $dest_version | awk -F'.' '{print $2}'`
patch_new_num=`echo $dest_version | awk -F'.' '{print $3}'`
cur_package_version_major_str="CPACK_PACKAGE_VERSION_MAJOR "$major_old_num
upd_package_version_major_str="CPACK_PACKAGE_VERSION_MAJOR "$major_new_num
cur_package_version_minor_str="CPACK_PACKAGE_VERSION_MINOR "$minor_old_num
upd_package_version_minor_str="CPACK_PACKAGE_VERSION_MINOR "$minor_new_num
cur_package_version_patch_str="CPACK_PACKAGE_VERSION_PATCH "$patch_old_num
upd_package_version_patch_str="CPACK_PACKAGE_VERSION_PATCH "$patch_new_num
sed -i s/"$cur_package_version_str"/"$upd_package_version_str"/g $upgrade_rpm_cmake_path
sed -i s/"$cur_package_version_patch_str"/"$upd_package_version_patch_str"/g $upgrade_rpm_cmake_path
sed -i s/"$cur_package_version_major_str"/"$upd_package_version_major_str"/g $upgrade_rpm_cmake_path
sed -i s/"$cur_package_version_minor_str"/"$upd_package_version_minor_str"/g $upgrade_rpm_cmake_path
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册