aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2017-08-07 16:28:28 +0200
committerDee'Kej <deekej@linuxmail.org>2017-08-07 16:44:37 +0200
commitb30181298764fd1229d9d9b6819f1aca38f87ee0 (patch)
tree88dd7494fdb188139a1edc21b9919da3a328a14c
parent1b6f378a86bf3cdfe41e097a5cec096f4a1dbd09 (diff)
downloadinitscripts-b30181298764fd1229d9d9b6819f1aca38f87ee0.tar
initscripts-b30181298764fd1229d9d9b6819f1aca38f87ee0.tar.gz
initscripts-b30181298764fd1229d9d9b6819f1aca38f87ee0.tar.bz2
initscripts-b30181298764fd1229d9d9b6819f1aca38f87ee0.tar.xz
initscripts-b30181298764fd1229d9d9b6819f1aca38f87ee0.zip
Makefile: return make archive for testing purposes
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
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"