aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-06-06 15:40:33 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-06-06 15:40:33 +0200
commitcecec6351dac2ae0f5e360fbfe808376a8e24e59 (patch)
tree7f40842af0719c2030cecfd57f54ba74681a17e7
parent8b3116248646499f8e401483ea481cde04378c71 (diff)
downloadmkinitcpio-archlogo-cecec6351dac2ae0f5e360fbfe808376a8e24e59.tar.gz
mkinitcpio-archlogo-cecec6351dac2ae0f5e360fbfe808376a8e24e59.tar.zst
Makefile: add release target
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d06d136..2e471a5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,11 @@
# Makefile for mkinitcpio-archlogo
+VERSION=0.2.0
+
all:
@echo "Just run make install..."
+.PHONY: install
install:
# install install script and unit file
install -D -m0644 install/archlogo $(DESTDIR)/usr/lib/initcpio/install/archlogo
@@ -19,4 +22,7 @@ install:
install -D -m0644 share/archlogo2 $(DESTDIR)/usr/share/archlogo/archlogo2
install -D -m0644 share/archlogo3 $(DESTDIR)/usr/share/archlogo/archlogo3
-.PHONY: install
+release:
+ git archive --format=tar.xz --prefix=mkinitcpio-archlogo-$(VERSION)/ $(VERSION) > mkinitcpio-archlogo-$(VERSION).tar.xz
+ gpg -ab mkinitcpio-archlogo-$(VERSION).tar.xz
+ git notes --ref=refs/notes/signatures/tar add -C $$(git archive --format=tar --prefix=mkinitcpio-archlogo-$(VERSION)/ $(VERSION) | gpg --armor --detach-sign | git hash-object -w --stdin) $(VERSION)