From b30181298764fd1229d9d9b6819f1aca38f87ee0 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Mon, 7 Aug 2017 16:28:28 +0200 Subject: Makefile: return make archive for testing purposes --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index bc0af1e3..75f00834 100644 --- a/Makefile +++ b/Makefile @@ -117,3 +117,12 @@ clean: tag: @git tag -a -f -m "Tag as $(TAG)" $(TAG) @echo "Tagged as $(TAG)" + +archive: clean changelog + @git archive --format=tar --prefix=initscripts-$(VERSION)/ HEAD > initscripts-$(VERSION).tar + @mkdir -p initscripts-$(VERSION)/ + @cp ChangeLog initscripts-$(VERSION)/ + @tar --append -f initscripts-$(VERSION).tar initscripts-$(VERSION) + @gzip -f initscripts-$(VERSION).tar + @rm -rf initscripts-$(VERSION) + @echo "The archive is at initscripts-$(VERSION).tar.gz" -- cgit v1.2.1