blob: 01c65e45714da5f9e10cd79b985e62b3b8902ede (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
ver="$(curl https://releases.mozilla.org/pub/thunderbird/releases/ | sed -rn 's/([^0-9]*)([0-9]*\.[0-9]*?(\.[0-9]*)).*/\2/p' | sort -V | tail -n1)"
sed -r "s/(pkgver=)(.*)/\1$ver/" -i PKGBUILD
makepkg --printsrcinfo > .SRCINFO
ver_msg="autohook $ver"
git commit -am "$ver_msg"
git push
(
[ -e 'home:nicman23/thunderbird-appmenu-bin/' ] || osc co home:nicman23 thunderbird-appmenu-bin
sed "s/PKGVER/${ver}/g" _service \
> home:nicman23/thunderbird-appmenu-bin/_service
cd home:nicman23/thunderbird-appmenu-bin/
osc commit -m "$ver_msg"
)
[ -e thunderbird-appmenu-bin ] || git clone ssh://aur@aur.archlinux.org/thunderbird-appmenu-bin.git
cd thunderbird-appmenu-bin
sed "s/^pkgver=.*/pkgver=${ver}/g" -i PKGBUILD
makepkg --printsrcinfo > .SRCINFO
git commit -am "$ver_msg"
git push
|