blob: cb65ee61b3e0a5c55d1d34b31e81909713155e44 (
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
|
.PHONY: upload
remote = github
repo = https://github.com/home-assistant/frontend
branch = master
all: .SRCINFO
fetch:
git remote show | grep -q "^$(remote)$$" || git remote add "$(remote)" "$(repo)"
git fetch "$(remote)"
version: VERSION = $(shell git describe --tags $(remote)/$(branch) | cut -d- -f1)
version: fetch
echo "$(VERSION)" > $@
touch -d "$(shell git -c log.showSignature=false show -s --format=%ci $(VERSION))" $@
PKGBUILD: version
%: %.in
m4 $< > $*
.SRCINFO: PKGBUILD
mksrcinfo
commit: .SRCINFO version
git diff --exit-code > /dev/null || git commit -am "`cat version`"
upload: commit
git push
|