Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-06 13:24:57 +0200
committerErich Eckner <git@eckner.net>2018-06-06 13:24:57 +0200
commit77ee1f3882ad966c9448aee1aa883f20a1efc56b (patch)
treed4fc80b904237074de42713ac89a9d78966e3241
parenteb6256f4316462a7668c2573fe301c541853820d (diff)
Makefile: add upload and dist target
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bd6447d..64a98d7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
PREFIX = /usr/local
+V=$(shell git describe --exact-match)
install:
install -dm755 $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
@@ -8,4 +9,11 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/share/pacman/keyrings/archlinux32{.gpg,-trusted,-revoked}
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
-.PHONY: install uninstall
+dist:
+ git archive --format=tar --prefix=archlinux32-keyring-$(V)/ $(V) | gzip -9 > archlinux32-keyring-$(V).tar.gz
+ gpg --detach-sign --use-agent archlinux32-keyring-$(V).tar.gz
+
+upload:
+ scp archlinux32-keyring-$(V).tar.gz archlinux32-keyring-$(V).tar.gz.sig sources.archlinux32.org:sources/
+
+.PHONY: install uninstall dist upload