summarylogtreecommitdiffstats
path: root/bump-pkgver.sh
blob: e5d3809efcabea33d2cd787af1fd30c09bded5cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -e

makepkg -sf
pkgver=$(grep "pkgver=" PKGBUILD | cut -d = -f 2)
sed -i "s/pkgver =.*/pkgver = $pkgver/g" .SRCINFO
git add .SRCINFO PKGBUILD
git status
echo "Do you want to commit and push these stages changes? (Enter to confirm, Ctrl+C to abort)"
read
git commit -m "Bump to $pkgver"
git push