.shincludes/autoload/updpkg
2024-02-01 14:39:30 +02:00

15 lines
220 B
Text

updpkg() (
set -e
[ "$#" -eq 1 ]
sed -i "s/^pkgver=.*/pkgver=$1/" PKGBUILD
updpkgsums
makepkg --printsrcinfo > .SRCINFO
makepkg -si
git add PKGBUILD .SRCINFO
git commit -m "update to $1"
git show
)