summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-06 13:36:26 +0200
committerErich Eckner <git@eckner.net>2021-02-14 14:55:32 +0100
commita98b1d280e3667b3a7c89060f4a94edc516a2d4c (patch)
tree67a85a29078d2ad7ded2466ae8cd180d97a4cfc7 /Makefile
parenta45ef7b0cdbbdea9c57eae7737bb07b42e0cce03 (diff)
downloadarchiso32-a98b1d280e3667b3a7c89060f4a94edc516a2d4c.tar.xz
Makefile: upload and dist refurbished
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3ee8a6a..d9bd337 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+V=$(shell git describe --exact-match)
+
INSTALL_FILES=$(wildcard archiso/initcpio/install/*)
HOOKS_FILES=$(wildcard archiso/initcpio/hooks/*)
SCRIPT_FILES=$(wildcard archiso/initcpio/script/*)
@@ -41,4 +43,11 @@ install-doc:
install -d $(DOC_DIR)
install -m 644 -t $(DOC_DIR) $(DOC_FILES)
-.PHONY: check install install-program install-initcpio install-examples install-doc
+dist:
+ git archive --format=tar --prefix=archiso32-$(V)/ $(V) | gzip -9 > archiso32-$(V).tar.gz
+ gpg --detach-sign --use-agent archiso32-$(V).tar.gz
+
+upload:
+ scp archiso32-$(V).tar.gz archiso32-$(V).tar.gz.sig sources.archlinux32.org:sources/
+
+.PHONY: check install install-program install-initcpio install-examples install-doc dist upload