Update version handling

This commit is contained in:
Ximi1970
2024-02-12 13:11:23 +01:00
parent 13b9e121b6
commit fcfe34aa10
14 changed files with 59 additions and 22 deletions

View File

@@ -1,8 +1,8 @@
# Maintainer: Maxime Rijnders <ximi.obs@gmail.com>
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)

View File

@@ -1,8 +1,8 @@
# Maintainer: Maxime Rijnders <ximi.obs@gmail.com>
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)

View File

@@ -1,8 +1,8 @@
# Maintainer: Maxime Rijnders <ximi.obs@gmail.com>
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)

View File

@@ -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

View File

@@ -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 <ximi.obs@gmail.com>
Architecture: any

View File

@@ -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

View File

@@ -1,6 +1,6 @@
Format: 1.0
Source: systray-x
Version: 0-0
Version: 0.9.6-1
Binary: SysTray-X
Maintainer: Maxime Rijnders <ximi.obs@gmail.com>
Architecture: any

View File

@@ -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

View File

@@ -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 <ximi.obs@gmail.com>
Architecture: any

6
dist/rpm/VERSION vendored
View File

@@ -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

View File

@@ -2,7 +2,7 @@
<service name="obs_scm">
<param name="url">https://github.com/Ximi1970/systray-x.git</param>
<param name="scm">git</param>
<param name="revision">0.9.6</param>
<param name="revision">release-0.9.6</param>
<param name="versionformat">0.9.6</param>
<param name="filename">systray-x-gnome</param>
<param name="extract">dist/rpm/gnome/systray-x-gnome.changes</param>

View File

@@ -2,7 +2,7 @@
<service name="obs_scm">
<param name="url">https://github.com/Ximi1970/systray-x.git</param>
<param name="scm">git</param>
<param name="revision">0.9.6</param>
<param name="revision">release-0.9.6</param>
<param name="versionformat">0.9.6</param>
<param name="extract">dist/rpm/kde/systray-x.changes</param>
<param name="extract">dist/rpm/kde/systray-x.spec</param>

View File

@@ -2,7 +2,7 @@
<service name="obs_scm">
<param name="url">https://github.com/Ximi1970/systray-x.git</param>
<param name="scm">git</param>
<param name="revision">0.9.6</param>
<param name="revision">release-0.9.6</param>
<param name="versionformat">0.9.6</param>
<param name="filename">systray-x-minimal</param>
<param name="extract">dist/rpm/minimal/systray-x-minimal.changes</param>
@@ -12,7 +12,6 @@
<param name="extract">dist/deb/minimal/debian.compat</param>
<param name="extract">dist/deb/minimal/debian.control</param>
<param name="extract">dist/deb/minimal/debian.rules</param>
<param name="extract">dist/deb/minimal/debian.postinst</param>
<param name="extract">dist/deb/minimal/systray-x-minimal.dsc</param>
<param name="extract">dist/arch/minimal/PKGBUILD</param>
</service>

View File

@@ -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\">\).*\(</param>\)?\1$VERSION\2?" $SERVICE_FILE
sed -i -e "s?\(^.*\"revision\">\).*\(</param>\)?\1release-$VERSION\2?" $SERVICE_FILE
sed -i -e "s?\(^.*\"versionformat\">\).*\(</param>\)?\1$VERSION\2?" $SERVICE_FILE
SERVICE_FILE="./dist/rpm/gnome/_service"
sed -i -e "s?\(^.*\"revision\">\).*\(</param>\)?\1$VERSION\2?" $SERVICE_FILE
sed -i -e "s?\(^.*\"revision\">\).*\(</param>\)?\1release-$VERSION\2?" $SERVICE_FILE
sed -i -e "s?\(^.*\"versionformat\">\).*\(</param>\)?\1$VERSION\2?" $SERVICE_FILE
SERVICE_FILE="./dist/rpm/minimal/_service"
sed -i -e "s?\(^.*\"revision\">\).*\(</param>\)?\1$VERSION\2?" $SERVICE_FILE
sed -i -e "s?\(^.*\"revision\">\).*\(</param>\)?\1release-$VERSION\2?" $SERVICE_FILE
sed -i -e "s?\(^.*\"versionformat\">\).*\(</param>\)?\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