summarylogtreecommitdiffstats
path: root/update.sh
blob: 82ddce3a4be4e27cce174827fbfb941df4abbd17 (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

#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 :)"