summarylogtreecommitdiffstats
path: root/update.sh
blob: cf6b6a9672464678bf2ec21bc1f1a24a394e4696 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
set -e

ver=$1

sed -E -i PKGBUILD -e 's|pkgver=.*|pkgver='$ver'|g' -e 's|pkgrel=.*|pkgrel=1|g'
updpkgsums
makepkg --printsrcinfo >.SRCINFO

git commit PKGBUILD .SRCINFO -m "update to $ver"