[arch-releng] [PATCH] Add dist function to Makefile

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Sun Jul 29 13:55:49 EDT 2012


On 07/28/2012 04:13 AM, Pierre Schmitz wrote:
> This dist function creates a tar archive of a tag.
>
> Signed-off-by: Pierre Schmitz <pierre at archlinux.de>
> ---
>   archiso/Makefile | 8 +++++++-
>   1 Datei geändert, 7 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)
>
> 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

Thanks, adding git in the README ;)

-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1



More information about the arch-releng mailing list