fix: correct some release id related variables

This commit is contained in:
outcontributer 2021-06-29 15:59:12 +08:00 committed by wangzelin.wzl
parent 2ef6e5e944
commit 4a9512ce70
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ set(CPACK_RPM_COMPONENT_INSTALL ON)
set(CPACK_RPM_MAIN_COMPONENT "server")
# let rpmbuild determine rpm filename
set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
set(CPACK_PACKAGE_RELEASE ${OB_RELEASEID})
set(CPACK_RPM_PACKAGE_RELEASE ${OB_RELEASEID})
set(CPACK_RPM_PACKAGE_RELEASE_DIST ON)
# RPM package informations.
set(CPACK_PACKAGING_INSTALL_PREFIX /home/admin/oceanbase)

View File

@ -33,7 +33,7 @@ void get_package_and_svn(char *server_version, int64_t buf_len)
extern "C" {
#endif
const char* build_version() { return "@AONE_BUILD_NUMBER@-@GIT_REVISION@"; }
const char* build_version() { return "@OB_RELEASEID@-@GIT_REVISION@"; }
const char* build_time() { return __TIME__; }
const char* build_date() { return __DATE__; }
const char* build_flags() { return "@BUILD_FLAGS@"; }