fix debian update-version script info

This commit is contained in:
Roy Qu 2024-04-14 18:33:02 +08:00
parent 481ad66881
commit 2b159eac47
1 changed files with 3 additions and 1 deletions

View File

@ -12,9 +12,11 @@ cd $DEBIAN_DIR
pwd pwd
oldver=`head changelog -n 1 | sed -r 's/^redpanda-cpp\s\((.*)-(.*)\)\s.*$/\1/g'` 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'` count=`head changelog -n 1 | sed -r 's/^redpanda-cpp\s\((.*)-(.*)\)\s.*$/\2/g'`
echo $oldver echo "Old version: $oldver"
if [ "$oldver" != "$ver" ]; then if [ "$oldver" != "$ver" ]; then
echo "Upgrade to $ver"
tmpfile=$(mktemp) tmpfile=$(mktemp)
now=`date -R` now=`date -R`
echo "redpanda-cpp ($ver-1) unstable; urgency=medium" >> $tmpfile echo "redpanda-cpp ($ver-1) unstable; urgency=medium" >> $tmpfile