Skip to content

Instantly share code, notes, and snippets.

@greyltc
Last active March 10, 2016 11:45
Show Gist options
  • Save greyltc/0fbdd69532e1276e69f6 to your computer and use it in GitHub Desktop.
Save greyltc/0fbdd69532e1276e69f6 to your computer and use it in GitHub Desktop.
script to keep aur repos up to date with github branches
#!/usr/bin/env bash
cd /tmp
git clone git@github.com:greyltc/pi-kernel-hacking.git
cd pi-kernel-hacking
git remote add pi2-default ssh+git://aur@aur.archlinux.org/linux-rpi2-default-git.git
git remote add pi2-latest ssh+git://aur@aur.archlinux.org/linux-rpi2-latest-git.git
git remote add pi3-default ssh+git://aur@aur.archlinux.org/linux-rpi3-default-git.git
git remote add pi3-latest ssh+git://aur@aur.archlinux.org/linux-rpi3-latest-git.git
git checkout pi2-default
#updpkgsums
#mksrcinfo
#git add .
#git commit -m "update checksums and srcinfo"
git push pi2-default +pi2-default:master
git checkout pi3-default
#updpkgsums
#mksrcinfo
#git add .
#git commit -m "update checksums and srcinfo"
git push pi3-default +pi3-default:master
git checkout pi2-latest
#updpkgsums
#mksrcinfo
#git add .
#git commit -m "update checksums and srcinfo"
git push pi2-latest +pi2-latest:master
git checkout pi3-latest
#updpkgsums
#mksrcinfo
#git add .
#git commit -m "update checksums and srcinfo"
git push pi3-latest +pi3-latest:master
#git push --all origin
cd
rm -rf /tmp/pi-kernel-hacking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment