2021-09-08 13:58:22 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
command=$1
|
|
|
|
shift
|
|
|
|
case $command in
|
|
|
|
(clone)
|
|
|
|
cd "$DATA/2-standards/dev/aur"
|
|
|
|
git -c init.defaultBranch=master clone ssh://aur@aur.archlinux.org/$1.git
|
|
|
|
cd "$1"
|
2021-09-18 20:02:28 +00:00
|
|
|
test -f PKGBUILD || sed "s/PKG/${1%%-git}/" ../PKGBUILD > PKGBUILD
|
|
|
|
test -f .gitignore || echo '*' > .gitignore
|
2021-09-08 13:58:22 +00:00
|
|
|
exec $SHELL;;
|
|
|
|
(create)
|
2021-09-18 20:02:28 +00:00
|
|
|
git add -f .gitignore PKGBUILD
|
2021-09-08 13:58:22 +00:00
|
|
|
git commit -m "Create package" "$@"
|
|
|
|
git aur push --amend;;
|
2021-09-18 20:02:28 +00:00
|
|
|
(push)
|
|
|
|
makepkg --printsrcinfo > .SRCINFO
|
|
|
|
git add -f .SRCINFO
|
2021-09-08 13:58:22 +00:00
|
|
|
git commit -v -a "$@"
|
|
|
|
git push;;
|
|
|
|
esac
|
|
|
|
|