Skip to content

Instantly share code, notes, and snippets.

@david0
Last active January 15, 2021 08:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save david0/445b56e9cf98abc849619fa97cd70382 to your computer and use it in GitHub Desktop.
Save david0/445b56e9cf98abc849619fa97cd70382 to your computer and use it in GitHub Desktop.
Reaper update script
#!/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