add update script

Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
This commit is contained in:
Ratan Rai Sur 2020-07-13 16:45:41 -05:00
parent b7fc71d261
commit 183bb27f97

23
update.sh Normal file
View file

@ -0,0 +1,23 @@
#!/bin/bash
#stop on failure
set -e
echo "Updating to verion $1"
sed -i -e "s/pkgver=.*/pkgver=$1/g" PKGBUILD
echo "Updating checksums"
updpkgsums
echo "Updating SRCINFO"
makepkg --printsrcinfo > .SRCINFO
echo "Commiting changes"
git add PKGBUILD .SRCINFO
git commit -m "Update to version $1"
git clean -d -f
echo "Pushing changes"
git push
echo "Update Complete :)"