aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2017-08-07 16:28:28 +0200
committerDee'Kej <deekej@linuxmail.org>2017-10-30 16:59:45 +0100
commit72f4b40634ebd653bcebd124ae80ea1f46f04a76 (patch)
tree3bee0fae6f054a9f29e25c61f5b5b6c2c0a79e04
parenta81b5e8ec984ca2a8ee7167eb87f6fc9db737843 (diff)
downloadinitscripts-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--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7b3f9174..ffdabee3 100644
--- a/Makefile
+++ b/Makefile
@@ -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"