-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
update_tb_version.sh
executable file
·40 lines (28 loc) · 1.58 KB
/
update_tb_version.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
VERSION=$1
INCVERSION=$((VERSION+1))
echo "Version: "$VERSION
echo "Version + 1: "$INCVERSION
SERVICE_FILE="./dist/rpm/kde/systray-x.spec"
sed -i -e "s?\(^Requires: thunderbird < \).*?\1$INCVERSION?" $SERVICE_FILE
sed -i -e "s?\(^Requires: MozillaThunderbird < \).*?\1$INCVERSION?" $SERVICE_FILE
SERVICE_FILE="./dist/rpm/gnome/systray-x-gnome.spec"
sed -i -e "s?\(^Requires: thunderbird < \).*?\1$INCVERSION?" $SERVICE_FILE
sed -i -e "s?\(^Requires: MozillaThunderbird < \).*?\1$INCVERSION?" $SERVICE_FILE
SERVICE_FILE="./dist/rpm/minimal/systray-x-minimal.spec"
sed -i -e "s?\(^Requires: thunderbird < \).*?\1$INCVERSION?" $SERVICE_FILE
sed -i -e "s?\(^Requires: MozillaThunderbird < \).*?\1$INCVERSION?" $SERVICE_FILE
SERVICE_FILE="./dist/deb/kde/debian.control"
sed -i -e "s?\(^Depends:.*, thunderbird (< 1:\).*?\1$INCVERSION)?" $SERVICE_FILE
SERVICE_FILE="./dist/deb/gnome/debian.control"
sed -i -e "s?\(^Depends:.*, thunderbird (< 1:\).*?\1$INCVERSION)?" $SERVICE_FILE
SERVICE_FILE="./dist/deb/minimal/debian.control"
sed -i -e "s?\(^Depends:.*, thunderbird (< 1:\).*?\1$INCVERSION)?" $SERVICE_FILE
SERVICE_FILE="./dist/arch/kde/PKGBUILD"
sed -i -e "s?\(^.*thunderbird<\).*?\1$INCVERSION'?" $SERVICE_FILE
SERVICE_FILE="./dist/arch/gnome/PKGBUILD"
sed -i -e "s?\(^.*thunderbird<\).*?\1$INCVERSION'?" $SERVICE_FILE
SERVICE_FILE="./dist/arch/minimal/PKGBUILD"
sed -i -e "s?\(^.*thunderbird<\).*?\1$INCVERSION'?" $SERVICE_FILE
MANIFEST_FILE="./webext/manifest.json"
sed -i -e "s?\(^.*\"strict_max_version\": \"\).*\(\.\*\"\)?\1$VERSION\2?" $MANIFEST_FILE