diff --git a/packages/debian/changelog b/packages/debian/changelog index f937c12b..40f949d3 100644 --- a/packages/debian/changelog +++ b/packages/debian/changelog @@ -1,3 +1,9 @@ +redpanda-cpp (2.27.2540-1) unstable; urgency=medium + + * Update to 2.27.2540 + + -- Roy Qu (瞿华) Wed, 27 Mar 2024 10:28:44 +0800 + redpanda-cpp (2.26-1) unstable; urgency=medium * Update to 2.26 diff --git a/packages/debian/update-version.sh b/packages/debian/update-version.sh new file mode 100755 index 00000000..ee26977f --- /dev/null +++ b/packages/debian/update-version.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +DEBIAN_DIR=packages/debian + +minorver=`git rev-list HEAD --count` +majorver=`head version.inc -n 1 | sed -r 's/^APP_VERSION=\"(.*)\".*$/\1/g'` +ver="${majorver}.${minorver}" + +pushd . +cd $DEBIAN_DIR + +pwd +oldver=`head changelog -n 1 | sed -r 's/^redpanda-cpp\s\((.*)-(.*)\)\s.*$/\1/g'` +count=`head changelog -n 1 | sed -r 's/^redpanda-cpp\s\((.*)-(.*)\)\s.*$/\2/g'` +echo $oldver + +if [ "$oldver" != "$ver" ]; then + tmpfile=$(mktemp) + now=`date -R` + echo "redpanda-cpp ($ver-1) unstable; urgency=medium" >> $tmpfile + echo "" >> $tmpfile + echo " * Update to $ver" >> $tmpfile + echo "" >> $tmpfile + echo " -- Roy Qu (瞿华) $now" >> $tmpfile + echo "" >> $tmpfile + cat changelog >> $tmpfile + mv $tmpfile changelog +fi