1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash set -e makepkg -sf updpkgsums makepkg --printsrcinfo > .SRCINFO CURRENT_VERSION=$(grep "pkgver=" PKGBUILD) CURRENT_VERSION=${CURRENT_VERSION#*=} echo "CURRENT_VERSION: ${CURRENT_VERSION}" git commit -v -a -m "Update to ${CURRENT_VERSION}"