aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Daniel Ruiz de Alegría <daniel@drasite.com>2019-04-13 10:05:39 +0200
committerLibravatar Daniel Ruiz de Alegría <daniel@drasite.com>2019-04-13 10:05:39 +0200
commitff44b3283697bd2da5535b8e55be39028d0adf8c (patch)
tree2e08aa37e5ae39d57ed3cc788ea0beb44c09697e /Makefile
parent25cac78c23e39319bf6f52abc1a0ad939956b35e (diff)
downloadflat-remix-ff44b3283697bd2da5535b8e55be39028d0adf8c.tar.gz
flat-remix-ff44b3283697bd2da5535b8e55be39028d0adf8c.zip
Automatize copr and aur release
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1628d4f32..bba986f91 100644
--- a/Makefile
+++ b/Makefile
@@ -24,16 +24,30 @@ uninstall:
-rm -rf $(foreach theme,$(THEMES),$(DESTDIR)$(PREFIX)/share/icons/$(theme))
_get_version:
- $(eval VERSION := $(shell git show -s --format=%cd --date=format:%Y%m%d HEAD))
+ $(eval VERSION ?= $(shell git show -s --format=%cd --date=format:%Y%m%d HEAD))
@echo $(VERSION)
dist: _get_version
git archive --format=tar.gz -o $(notdir $(CURDIR))-$(VERSION).tar.gz master -- $(THEMES)
+aur_release: _get_version
+ cd aur; \
+ sed "s/pkgver=.*/pkgver=$(VERSION)/" -i PKGBUILD; \
+ makepkg --printsrcinfo > .SRCINFO; \
+ git commit -a -m "$(VERSION)"; \
+ git push origin
+
+copr_release: _get_version
+ sed "s/Version:.*/Version: $(VERSION)/" -i flat-remix.spec
+ git add flat-remix.spec
+ git commit -m "Update flat-remix.spec version $(VERSION)"
+ git push origin
+
release: _get_version
git tag -f $(VERSION)
- git push origin
git push origin --tags
+ $(MAKE) copr_release
+ $(MAKE) aur_release
undo_release: _get_version
-git tag -d $(VERSION)