Skip to content

Commit

Permalink
feat: refactor v11 package name
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdrivingduck committed Sep 5, 2024
1 parent 276a7fc commit 9dfb570
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/debian/build-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ code_commit=$(git rev-parse HEAD || echo unknown)
code_branch=$(git rev-parse --abbrev-ref HEAD || echo unknown)
polar_commit=$(git rev-parse --short=8 HEAD || echo unknown)
pg_version=$(grep AC_INIT ../../configure.in | awk -F'[][]' '{print $4}')
polar_majorversion=2.0.$(echo ${pg_version})
polar_majorversion=$(echo ${pg_version})
polar_minorversion=$(grep -A 1 '&polar_version' ../../src/backend/utils/misc/guc.c | awk 'NR==2{print}' | awk -F'[."]' '{print $4}').0
polar_release_date=$(grep -A 1 '&polar_release_date' ../../src/backend/utils/misc/guc.c | awk 'NR==2{print}' | awk -F'[,"]' '{print $2}')
polar_version=${polar_majorversion}.${polar_minorversion}
Expand Down
2 changes: 1 addition & 1 deletion package/rpm/PolarDB.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
%define code_branch %(git rev-parse --abbrev-ref HEAD || echo unknown)
%define polar_commit %(git rev-parse --short=8 HEAD || echo unknown)
%define pg_version %(grep AC_INIT ../../configure.in | awk -F'[][]' '{print $4}')
%define polar_majorversion 2.0.%{pg_version}
%define polar_majorversion %{pg_version}
%define polar_minorversion %(grep -A 1 '&polar_version' ../../src/backend/utils/misc/guc.c | awk 'NR==2{print}' | awk -F'[."]' '{print $4}').0
%define polar_release_date %(grep -A 1 '&polar_release_date' ../../src/backend/utils/misc/guc.c | awk 'NR==2{print}' | awk -F'[,"]' '{print $2}')
%define polar_version %{polar_majorversion}.%{polar_minorversion}
Expand Down

0 comments on commit 9dfb570

Please sign in to comment.