mirror of
https://github.com/archlinux/aur.git
synced 2026-02-10 06:54:23 +01:00
added script for automatic update
This commit is contained in:
parent
8767c0daad
commit
a52decb47d
1 changed files with 13 additions and 0 deletions
13
update_version.sh
Normal file
13
update_version.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
NVERSION=`curl https://apt.connectify.me/dists/speedify/main/binary-amd64/Packages|grep Version|head -1|cut -d" " -f2`
|
||||
CVERSION=`cat PKGBUILD |grep _pkgver=|cut -d= -f2`
|
||||
|
||||
echo "Versions: '$NVERSION' '$CVERSION'"
|
||||
if [ $NVERSION != $CVERSION ]; then
|
||||
echo "Updating ..."
|
||||
sed -i "s/$CVERSION/$NVERSION/g" PKGBUILD
|
||||
#to see if it build
|
||||
makepkg
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
git commit -am "New version $NVERSION"
|
||||
git push aur master
|
||||
fi
|
||||
Loading…
Add table
Reference in a new issue