diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2017-08-07 16:28:28 +0200 |
---|---|---|
committer | Dee'Kej <deekej@linuxmail.org> | 2017-10-30 16:59:45 +0100 |
commit | 72f4b40634ebd653bcebd124ae80ea1f46f04a76 (patch) | |
tree | 3bee0fae6f054a9f29e25c61f5b5b6c2c0a79e04 | |
parent | a81b5e8ec984ca2a8ee7167eb87f6fc9db737843 (diff) | |
download | initscripts-72f4b40634ebd653bcebd124ae80ea1f46f04a76.tar initscripts-72f4b40634ebd653bcebd124ae80ea1f46f04a76.tar.gz initscripts-72f4b40634ebd653bcebd124ae80ea1f46f04a76.tar.bz2 initscripts-72f4b40634ebd653bcebd124ae80ea1f46f04a76.tar.xz initscripts-72f4b40634ebd653bcebd124ae80ea1f46f04a76.zip |
Makefile: return make archive for testing purposes
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -135,3 +135,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" |