blob: 2975ee8a397538749a3744b877334981006177de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/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
sudo pacman -U nvm-${VERSION}-1-any.pkg.tar.xz
set +x
echo "Now smoke test the package, review the commit, and push"
|