Skip to content

Commit 9dfb570

Browse files
committed
feat: refactor v11 package name
1 parent 276a7fc commit 9dfb570

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/debian/build-deb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ code_commit=$(git rev-parse HEAD || echo unknown)
2525
code_branch=$(git rev-parse --abbrev-ref HEAD || echo unknown)
2626
polar_commit=$(git rev-parse --short=8 HEAD || echo unknown)
2727
pg_version=$(grep AC_INIT ../../configure.in | awk -F'[][]' '{print $4}')
28-
polar_majorversion=2.0.$(echo ${pg_version})
28+
polar_majorversion=$(echo ${pg_version})
2929
polar_minorversion=$(grep -A 1 '&polar_version' ../../src/backend/utils/misc/guc.c | awk 'NR==2{print}' | awk -F'[."]' '{print $4}').0
3030
polar_release_date=$(grep -A 1 '&polar_release_date' ../../src/backend/utils/misc/guc.c | awk 'NR==2{print}' | awk -F'[,"]' '{print $2}')
3131
polar_version=${polar_majorversion}.${polar_minorversion}

package/rpm/PolarDB.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
%define code_branch %(git rev-parse --abbrev-ref HEAD || echo unknown)
2626
%define polar_commit %(git rev-parse --short=8 HEAD || echo unknown)
2727
%define pg_version %(grep AC_INIT ../../configure.in | awk -F'[][]' '{print $4}')
28-
%define polar_majorversion 2.0.%{pg_version}
28+
%define polar_majorversion %{pg_version}
2929
%define polar_minorversion %(grep -A 1 '&polar_version' ../../src/backend/utils/misc/guc.c | awk 'NR==2{print}' | awk -F'[."]' '{print $4}').0
3030
%define polar_release_date %(grep -A 1 '&polar_release_date' ../../src/backend/utils/misc/guc.c | awk 'NR==2{print}' | awk -F'[,"]' '{print $2}')
3131
%define polar_version %{polar_majorversion}.%{polar_minorversion}

0 commit comments

Comments
 (0)