script to auto generate debian changelog
This commit is contained in:
parent
2bffb46bda
commit
6be609f2b4
|
@ -1,3 +1,9 @@
|
||||||
|
redpanda-cpp (2.27.2540-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Update to 2.27.2540
|
||||||
|
|
||||||
|
-- Roy Qu (瞿华) <royqh1979@gmail.com> Wed, 27 Mar 2024 10:28:44 +0800
|
||||||
|
|
||||||
redpanda-cpp (2.26-1) unstable; urgency=medium
|
redpanda-cpp (2.26-1) unstable; urgency=medium
|
||||||
|
|
||||||
* Update to 2.26
|
* Update to 2.26
|
||||||
|
|
|
@ -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 (瞿华) <royqh1979@gmail.com> $now" >> $tmpfile
|
||||||
|
echo "" >> $tmpfile
|
||||||
|
cat changelog >> $tmpfile
|
||||||
|
mv $tmpfile changelog
|
||||||
|
fi
|
Loading…
Reference in New Issue