diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2017-08-07 16:28:28 +0200 |
---|---|---|
committer | Dee'Kej <deekej@linuxmail.org> | 2017-08-07 16:44:37 +0200 |
commit | b30181298764fd1229d9d9b6819f1aca38f87ee0 (patch) | |
tree | 88dd7494fdb188139a1edc21b9919da3a328a14c | |
parent | 1b6f378a86bf3cdfe41e097a5cec096f4a1dbd09 (diff) | |
download | initscripts-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-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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" |