Skip to content

Commit

Permalink
Merge branch 'POLARDB_11_DEV' into POLARDB_11_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdrivingduck committed Aug 7, 2024
2 parents 56a31dd + 8bc149c commit 14adc68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package/debian/build-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ distname=$(grep '^ID=' /etc/os-release | awk -F'=' '{print $2}')
distversion=$(grep 'VERSION_ID=' /etc/os-release | awk -F\" '{print $2}')
arch=$(dpkg --print-architecture)

pkgname=${package}_${polar_pg_version}-${build_date}-${distname}${distversion}_${arch}
pkgname=${package}_${polar_version}-${polar_commit}-${distname}${distversion}_${arch}
rm -rf ./${pkgname}
mkdir -p ${pkgname}/DEBIAN

cat ./control >> ${pkgname}/DEBIAN/control
echo 'Version: '${polar_pg_version}'-'${build_date}'' >> ${pkgname}/DEBIAN/control
echo 'Version: '${polar_version}'-'${polar_commit}'' >> ${pkgname}/DEBIAN/control
echo 'Architecture: '${arch}'' >> ${pkgname}/DEBIAN/control

prefix=/u01/polardb_pg
Expand Down
6 changes: 3 additions & 3 deletions package/rpm/PolarDB.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
%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.%(echo %pg_version | awk -F'[^0-9]+' '{print $1}')
%define polar_majorversion 2.0.%{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}
%define polar_pg_version %{pg_version}.%{polar_minorversion}
%define _build_id_links none
%define __spec_install_pre /bin/true

Version: %{polar_pg_version}
Release: %{build_date}%{?dist}
Version: %{polar_version}
Release: %{polar_commit}%{?dist}
Summary: PolarDB
Name: PolarDB
Group: alibaba/application
Expand Down

0 comments on commit 14adc68

Please sign in to comment.