summarylogtreecommitdiffstats
path: root/publish.sh
blob: 2ee5b5476e4b5778fdc0284a173d745814cc0fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/bash

set -e # exit on error

echo "cleanup"
sudo rm -rf */

echo "update SRCINFO"
makepkg --printsrcinfo > .SRCINFO
(git add . && git commit -m "SRCINFO") || true

echo "push to aur"
if [ -z "$(git remote | grep aur)" ]; then
  git remote add aur ssh://aur@aur.archlinux.org/mc-server-hub-git.git
fi
git push --set-upstream aur master
git push --set-upstream origin master