Skip to content

Instantly share code, notes, and snippets.

@david0

david0/reaper-update.sh

Last active Jan 15, 2021
Embed
What would you like to do?
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