Re: [hackers] [st][PATCH] Use git archive to create the dist tar file

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Thu, 14 Jan 2021 10:41:19 +0100

On Wed, Jan 13, 2021 at 09:05:41PM -0500, Steve Ward wrote:
> ---
> Makefile | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 470ac86..7d5ab41 100644
> --- a/Makefile
> +++ b/Makefile
> _AT_@ -33,12 +33,7 @@ clean:
> rm -f st $(OBJ) st-$(VERSION).tar.gz
>
> dist: clean
> - mkdir -p st-$(VERSION)
> - cp -R FAQ LEGACY TODO LICENSE Makefile README config.mk\
> - config.def.h st.info st.1 arg.h st.h win.h $(SRC)\
> - st-$(VERSION)
> - tar -cf - st-$(VERSION) | gzip > st-$(VERSION).tar.gz
> - rm -rf st-$(VERSION)
> + git archive --prefix st-$(VERSION)/ HEAD | gzip > st-$(VERSION).tar.gz
>
> install: st
> mkdir -p $(DESTDIR)$(PREFIX)/bin
> --
> 2.30.0
>
>

No

-- 
Kind regards,
Hiltjo
Received on Thu Jan 14 2021 - 10:41:19 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 14 2021 - 10:48:40 CET