diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-07-31 19:52:09 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2012-07-31 19:52:09 -0300 |
commit | 281234509f01dbb7c9291856e3604f36592db802 (patch) | |
tree | 842eaee7730384bde5c50342d5c9af186da5c4a3 /archiso/Makefile | |
parent | d2394aa2b95289ab5f1d18c27db3fbc15f7f3cf8 (diff) | |
download | archiso32-281234509f01dbb7c9291856e3604f36592db802.tar.xz |
Add dist function to Makefile
This dist function creates a tar archive of a tag.
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'archiso/Makefile')
-rw-r--r-- | archiso/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/archiso/Makefile b/archiso/Makefile index 03f9a16..6a73d00 100644 --- a/archiso/Makefile +++ b/archiso/Makefile @@ -1,3 +1,5 @@ +V=1 + all: install: install-program install-hooks install-examples install-doc @@ -54,4 +56,8 @@ uninstall: rm -f $(DESTDIR)/usr/lib/initcpio/install/archiso_kms rm -rf $(DESTDIR)/usr/share/archiso/ -.PHONY: install install-program install-hooks install-examples install-doc uninstall +dist: + git archive --format=tar --prefix=archiso-$(V)/ v$(V) | gzip -9 > archiso-$(V).tar.gz + gpg --detach-sign --use-agent archiso-$(V).tar.gz + +.PHONY: install install-program install-hooks install-examples install-doc uninstall dist |