blob: 5241ba3c213c1f9edd98742b778fe31f20183d91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
if (( $# != 1 )); then
echo "Usage: $0 VERSION"
echo "Update pkgver to VERSION and then build and commit."
echo "You just need to test the package, review the commit and push."
exit 1
fi
VERSION=$1
set -x
sed -i "s/^pkgver=.*\$/pkgver=${VERSION}/" PKGBUILD
updpkgsums
makepkg --printsrcinfo > .SRCINFO
git add .
git commit -m "Upgrade to v${VERSION}"
makepkg -i
set +x
echo "Now smoke test the package, review the commit, and push"
|