Last active
January 15, 2021 08:34
-
-
Save david0/445b56e9cf98abc849619fa97cd70382 to your computer and use it in GitHub Desktop.
Reaper update script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#RESPONSE=`curl -s https://www.landoleet.org/` | |
ping -c1 google.de || exit -1 | |
NEWVERISON=6.`~/bin/reaper-download-url|grep -o '/reaper[^>]*_linux_x86_64.tar.xz'|tail -1|cut -c9-| cut -d_ -f1` | |
cd ~/aur/reaper | |
git reset --hard origin/master | |
git pull | |
sed -i "s/pkgver=.*/pkgver=$NEWVERISON/" PKGBUILD | |
# exit if nothing changed | |
git diff-index --quiet HEAD -- && exit | |
updpkgsums | |
makepkg --printsrcinfo > .SRCINFO | |
git add .SRCINFO PKGBUILD | |
git commit -m "new release $NEWVERISON" | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment