From fcfe34aa108420fbdaf79c3af3317c9f2c52aed9 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 12 Feb 2024 13:11:23 +0100 Subject: [PATCH] Update version handling --- dist/arch/gnome/PKGBUILD | 4 +-- dist/arch/kde/PKGBUILD | 4 +-- dist/arch/minimal/PKGBUILD | 4 +-- dist/deb/gnome/debian.changelog | 2 +- dist/deb/gnome/systray-x-gnome.dsc | 2 +- dist/deb/kde/debian.changelog | 2 +- dist/deb/kde/systray-x.dsc | 2 +- dist/deb/minimal/debian.changelog | 2 +- dist/deb/minimal/systray-x-minimal.dsc | 2 +- dist/rpm/VERSION | 6 ++-- dist/rpm/gnome/_service | 2 +- dist/rpm/kde/_service | 2 +- dist/rpm/minimal/_service | 3 +- update_version.sh | 44 ++++++++++++++++++++++++-- 14 files changed, 59 insertions(+), 22 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index 8b11c0d..8539b54 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: Maxime Rijnders pkgname=systray-x-gnome -pkgver=0 -pkgrel=0 +pkgver=0.9.6 +pkgrel=1 epoch=1 pkgdesc='A system tray extension for Thunderbird (GNOME)' arch=(x86_64) diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 8ad01c9..bead3aa 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: Maxime Rijnders pkgname=systray-x -pkgver=0 -pkgrel=0 +pkgver=0.9.6 +pkgrel=1 epoch=1 pkgdesc='A system tray extension for Thunderbird (KDE)' arch=(x86_64) diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 7896115..dcc97da 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: Maxime Rijnders pkgname=systray-x-minimal -pkgver=0 -pkgrel=0 +pkgver=0.9.6 +pkgrel=1 epoch=1 pkgdesc='A system tray extension for Thunderbird (Unity/XFCE/other)' arch=(x86_64) diff --git a/dist/deb/gnome/debian.changelog b/dist/deb/gnome/debian.changelog index bf966aa..0fd2de1 100644 --- a/dist/deb/gnome/debian.changelog +++ b/dist/deb/gnome/debian.changelog @@ -1,4 +1,4 @@ -systray-x-gnome (0.9.6-0) unstable; urgency=low +systray-x-gnome (0.9.6-1) unstable; urgency=low * Update to 0.9.6 diff --git a/dist/deb/gnome/systray-x-gnome.dsc b/dist/deb/gnome/systray-x-gnome.dsc index 4e305ff..57feca2 100644 --- a/dist/deb/gnome/systray-x-gnome.dsc +++ b/dist/deb/gnome/systray-x-gnome.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-gnome -Version: 0-0 +Version: 0.9.6-1 Binary: systray-x-gnome Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/kde/debian.changelog b/dist/deb/kde/debian.changelog index 6f8c9cc..44b5719 100644 --- a/dist/deb/kde/debian.changelog +++ b/dist/deb/kde/debian.changelog @@ -1,4 +1,4 @@ -systray-x (0.9.6-0) unstable; urgency=low +systray-x (0.9.6-1) unstable; urgency=low * Update to 0.9.6 diff --git a/dist/deb/kde/systray-x.dsc b/dist/deb/kde/systray-x.dsc index 8ed7726..e2603fd 100644 --- a/dist/deb/kde/systray-x.dsc +++ b/dist/deb/kde/systray-x.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x -Version: 0-0 +Version: 0.9.6-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/minimal/debian.changelog b/dist/deb/minimal/debian.changelog index 9b8a153..a590c05 100644 --- a/dist/deb/minimal/debian.changelog +++ b/dist/deb/minimal/debian.changelog @@ -1,4 +1,4 @@ -systray-x-minimal (0.9.6-0) unstable; urgency=low +systray-x-minimal (0.9.6-1) unstable; urgency=low * Update to 0.9.6 diff --git a/dist/deb/minimal/systray-x-minimal.dsc b/dist/deb/minimal/systray-x-minimal.dsc index 5de7c88..413ef6f 100644 --- a/dist/deb/minimal/systray-x-minimal.dsc +++ b/dist/deb/minimal/systray-x-minimal.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-minimal -Version: 0-0 +Version: 0.9.6-1 Binary: systray-x-minimal Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/rpm/VERSION b/dist/rpm/VERSION index 56922d8..6e53c76 100644 --- a/dist/rpm/VERSION +++ b/dist/rpm/VERSION @@ -1,4 +1,4 @@ VERSION=0.9.6 -BUILD_NUMBER=1004 -GIT_HASH=98823ee230826fc4e7e6986e42348f0c09de4408 -GIT_BRANCH=develop +BUILD_NUMBER=1006 +GIT_HASH=13b9e121b63533a2c6050369e8472d05a7965c12 +GIT_BRANCH=release-0.9.6 diff --git a/dist/rpm/gnome/_service b/dist/rpm/gnome/_service index 6d0931f..2fca7ed 100644 --- a/dist/rpm/gnome/_service +++ b/dist/rpm/gnome/_service @@ -2,7 +2,7 @@ https://github.com/Ximi1970/systray-x.git git - 0.9.6 + release-0.9.6 0.9.6 systray-x-gnome dist/rpm/gnome/systray-x-gnome.changes diff --git a/dist/rpm/kde/_service b/dist/rpm/kde/_service index 053ca21..5c5c36f 100644 --- a/dist/rpm/kde/_service +++ b/dist/rpm/kde/_service @@ -2,7 +2,7 @@ https://github.com/Ximi1970/systray-x.git git - 0.9.6 + release-0.9.6 0.9.6 dist/rpm/kde/systray-x.changes dist/rpm/kde/systray-x.spec diff --git a/dist/rpm/minimal/_service b/dist/rpm/minimal/_service index bdb0e0b..0e7f257 100644 --- a/dist/rpm/minimal/_service +++ b/dist/rpm/minimal/_service @@ -2,7 +2,7 @@ https://github.com/Ximi1970/systray-x.git git - 0.9.6 + release-0.9.6 0.9.6 systray-x-minimal dist/rpm/minimal/systray-x-minimal.changes @@ -12,7 +12,6 @@ dist/deb/minimal/debian.compat dist/deb/minimal/debian.control dist/deb/minimal/debian.rules - dist/deb/minimal/debian.postinst dist/deb/minimal/systray-x-minimal.dsc dist/arch/minimal/PKGBUILD diff --git a/update_version.sh b/update_version.sh index a542ad5..dcbbea1 100755 --- a/update_version.sh +++ b/update_version.sh @@ -1,24 +1,62 @@ #!/bin/bash +if [[ -z $2 ]] ; then + RELEASE=1 +else + RELEASE=$2 +fi + VERSION=$1 +echo $VERSION-$RELEASE + VERSION_AR=(${VERSION//./ }) VERSION_MAJOR=${VERSION_AR[0]} VERSION_MINOR=${VERSION_AR[1]} VERSION_BUILD=${VERSION_AR[2]} SERVICE_FILE="./dist/rpm/kde/_service" -sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE +sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1release-$VERSION\2?" $SERVICE_FILE sed -i -e "s?\(^.*\"versionformat\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE SERVICE_FILE="./dist/rpm/gnome/_service" -sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE +sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1release-$VERSION\2?" $SERVICE_FILE sed -i -e "s?\(^.*\"versionformat\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE SERVICE_FILE="./dist/rpm/minimal/_service" -sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE +sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1release-$VERSION\2?" $SERVICE_FILE sed -i -e "s?\(^.*\"versionformat\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE + +SERVICE_FILE="./dist/deb/kde/debian.changelog" +sed -i -e "0,/systray-x/{s?\(^systray-x \).*\( unstable.*\)?\1($VERSION-$RELEASE)\2?}" $SERVICE_FILE +SERVICE_FILE="./dist/deb/kde/systray-x.dsc" +sed -i -e "s?\(^Version: \).*?\1$VERSION-$RELEASE?" $SERVICE_FILE + +SERVICE_FILE="./dist/deb/gnome/debian.changelog" +sed -i -e "0,/systray-x/{s?\(^systray-x-gnome \).*\( unstable.*\)?\1($VERSION-$RELEASE)\2?}" $SERVICE_FILE +SERVICE_FILE="./dist/deb/gnome/systray-x-gnome.dsc" +sed -i -e "s?\(^Version: \).*?\1$VERSION-$RELEASE?" $SERVICE_FILE + +SERVICE_FILE="./dist/deb/minimal/debian.changelog" +sed -i -e "0,/systray-x/{s?\(^systray-x-minimal \).*\( unstable.*\)?\1($VERSION-$RELEASE)\2?}" $SERVICE_FILE +SERVICE_FILE="./dist/deb/minimal/systray-x-minimal.dsc" +sed -i -e "s?\(^Version: \).*?\1$VERSION-$RELEASE?" $SERVICE_FILE + + +SERVICE_FILE="./dist/arch/kde/PKGBUILD" +sed -i -e "s?\(^pkgver=\).*?\1$VERSION?" $SERVICE_FILE +sed -i -e "s?\(^pkgrel=\).*?\1$RELEASE?" $SERVICE_FILE + +SERVICE_FILE="./dist/arch/gnome/PKGBUILD" +sed -i -e "s?\(^pkgver=\).*?\1$VERSION?" $SERVICE_FILE +sed -i -e "s?\(^pkgrel=\).*?\1$RELEASE?" $SERVICE_FILE + +SERVICE_FILE="./dist/arch/minimal/PKGBUILD" +sed -i -e "s?\(^pkgver=\).*?\1$VERSION?" $SERVICE_FILE +sed -i -e "s?\(^pkgrel=\).*?\1$RELEASE?" $SERVICE_FILE + + MANIFEST_FILE="./webext/manifest.json" sed -i -e "s?\(^.*\"version\": \"\).*\(\",\)?\1$VERSION\2?" $MANIFEST_FILE