blob: 83a3e33c0b4e57d81014db8227f717eced45b8af (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
include prelude.mk
PKG_NAME := yandex-cloud-cli-bin
.PHONY: all
all: build
.PHONY: build
build:
makepkg --clean --cleanbuild --force --syncdeps && makepkg --printsrcinfo > .SRCINFO
.PHONY: commit
commit:
git add .SRCINFO
source ./PKGBUILD && git commit -am "aur: $$pkgver-$$pkgrel"
.PHONY: push
push:
git push 'ssh://aur@aur.archlinux.org/$(call escape,$(PKG_NAME)).git' "$$( git symbolic-ref HEAD ):master"
.PHONY: maintenance
maintenance:
$(MAKE) || true
$(MAKE)
@git_status="$$( git status --porcelain=v1 )" && \
if [ -z "$$git_status" ]; then \
true; \
elif [ "$$git_status" = $$' M .SRCINFO\n M PKGBUILD' ]; then \
$(MAKE) commit && \
git push -q && \
$(MAKE) push ; \
else \
echo; \
echo '-----------------------------------------------------------------'; \
echo 'Error: unrecognized modifications in the repository:'; \
echo "$$git_status"; \
echo '-----------------------------------------------------------------'; \
exit 1; \
fi
|