Drop the version bump script

This commit is contained in:
Matti Viljanen 2022-03-19 21:54:01 +02:00
parent ad129955a9
commit eb68f75173
No known key found for this signature in database
GPG key ID: CF32A1495158F888
3 changed files with 4 additions and 22 deletions

View file

@ -14,12 +14,9 @@ TARGET = harbour-batterybuddy
CONFIG += console sailfishapp sailfishapp_i18n
# Keep this in sync with "service.pro"
VER = 3.16.2
REL = 1
# Keep this in sync with service.pro and .spec
VERSION = 3.16.2-1
VERSION = $${VER}-$${REL}
system(bash update-spec-version.sh $$TARGET $$VER $$REL)
DEFINES += APP_VERSION=\"\\\"$$VERSION\\\"\"
DEFINES += APP_NAME=\"\\\"$$TARGET\\\"\"

View file

@ -1,13 +0,0 @@
#!/bin/bash
SPEC=../rpm/$1.spec
if [[ $(grep "^Version: $2$" $SPEC | wc -l) = 0 ]]
then
sed -i "/^Version: /c\Version: $2" $SPEC
touch src/$1.cpp
fi
if [[ $(grep "^Release: $3$" $SPEC | wc -l) = 0 ]]
then
sed -i "/^Release: /c\Release: $3" $SPEC
touch src/$1.cpp
fi
echo true

View file

@ -11,11 +11,9 @@ contains(LEGACY_BUILD, 1) { QT = core dbus multimedia }
PKGCONFIG += nemonotifications-qt5
# Keep this in sync with "application.pro"
VER = 3.16.2
REL = 1
# Keep this in sync with application.pro and .spec
VERSION = 3.16.2-1
VERSION = $${VER}-$${REL}
DEFINES += APP_VERSION=\"\\\"$$VERSION\\\"\"
DEFINES += APP_NAME=\"\\\"$$TARGET\\\"\"
DEFINES += LEGACY_BUILD=$${LEGACY_BUILD}