summarylogtreecommitdiffstats
path: root/.main
blob: 87651b7ef08877fd6a1231e92215ae59fbc5bbea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
case $1 in
  clean)
     git clean -dfX
     ;;
  generate-srcinfo)
    makepkg --printsrcinfo > .SRCINFO
    ;;
  push)
    if git remote get-url aur; then
        if ! test "$(git remote get-url aur)" = "ssh://aur@aur.archlinux.org/shadow-tech.git"; then
            git remote set-url aur "ssh://aur@aur.archlinux.org/shadow-tech.git"
        fi
    else
        git remote add aur "ssh://aur@aur.archlinux.org/shadow-tech.git"
    fi
    git push aur master
    ;;
  *)
    echo "This is a helper script for the maintainers of this package"
    echo "Available Commands:"
    echo "  generate-srcinfo - generate the .SRCINFO from current build (run makepkg before to update version number)"
    echo "  push - push to aur"
    echo "  clean - delete generated/downloaded files"
    ;;
esac