From a4d91d3a352ac43a0fe373b259522ab98f9ced01 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sat, 7 Mar 2020 15:58:04 +0100 Subject: [PATCH] Makefile: add target to pack a zip archive for the current revision of the git repository --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7e6fd08..a881b0f 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ build: ############################## -release: checksums sign_checksums +release: checksums sign_checksums release_archive checksums: # Generate checksums of the resulting ISO image @@ -63,6 +63,9 @@ sign_checksums: gpg --detach-sign --armor SHA512SUMS; \ mv SHA512SUMS.asc SHA512SUMS.sign +release_archive: + git archive --format=zip -9 HEAD -o $$(basename $$PWD)-$$(git rev-parse HEAD).zip + ################################ tests: download_iso test_kvm_bios test_kvm_uefi