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

set -e # exit on error

echo "cleanup"
sudo rm -rf */

echo "update SRCINFO"
makepkg --printsrcinfo > .SRCINFO
(git add .SRCINFO && 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/clmath-git.git
fi
git push --set-upstream aur master