aur/update_version.sh
2022-02-15 13:14:40 +01:00

13 lines
451 B
Bash
Executable file

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
fi