Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Metz
oceanbase
提交
63edf11b
O
oceanbase
项目概览
Metz
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
63edf11b
编写于
2月 16, 2022
作者:
X
xj0
提交者:
LINGuanRen
2月 16, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[fix] update RPM.cmake and version upgrade script
上级
83219d74
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
2 deletion
+24
-2
cmake/RPM.cmake
cmake/RPM.cmake
+2
-2
tools/scripts/upgrade_observer_version.sh
tools/scripts/upgrade_observer_version.sh
+22
-0
未找到文件。
cmake/RPM.cmake
浏览文件 @
63edf11b
...
@@ -17,10 +17,10 @@ list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/home/admin/oceanbase
...
@@ -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_NAME
"oceanbase-ce"
)
set
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"OceanBase CE is a distributed relational database"
)
set
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"OceanBase CE is a distributed relational database"
)
set
(
CPACK_PACKAGE_VENDOR
"Ant Group CO., Ltd."
)
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_MAJOR 3
)
set
(
CPACK_PACKAGE_VERSION_MINOR 1
)
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_GROUP
"Applications/Databases"
)
set
(
CPACK_RPM_PACKAGE_URL
"https://open.oceanbase.com"
)
set
(
CPACK_RPM_PACKAGE_URL
"https://open.oceanbase.com"
)
set
(
CPACK_RPM_PACKAGE_DESCRIPTION
"OceanBase CE is a distributed relational database"
)
set
(
CPACK_RPM_PACKAGE_DESCRIPTION
"OceanBase CE is a distributed relational database"
)
...
...
tools/scripts/upgrade_observer_version.sh
浏览文件 @
63edf11b
...
@@ -88,3 +88,25 @@ upgrade_post_path="tools/upgrade/upgrade_post.py"
...
@@ -88,3 +88,25 @@ upgrade_post_path="tools/upgrade/upgrade_post.py"
upgrade_pre_path
=
"tools/upgrade/upgrade_pre.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_post_path
sed
-i
s/admin/xxx/g
$upgrade_pre_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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录