hurl

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d751735baf6904ccc0c81ca9050a2a683f6389f3
parent ee0a010dcee9362e3c6b2d1ce4d33aa1691309b5
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 14 Jun 2020 14:17:52 +0200

Makefile: tweaks to make dist target

- use tar cf, not tar -cf, should be slightly more portable.
- gzip from stdin, saves moving a file.

Diffstat:
MMakefile | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -39,12 +39,12 @@ uninstall: rm -f "${DESTDIR}${MANDIR}/${NAME}.1" dist: clean + rm -rf "${NAME}-${VERSION}" mkdir -p ${NAME}-${VERSION} cp -R hurl.vt README LICENSE Makefile ${NAME}.1 \ ${NAME}.c arg.h ${NAME}-${VERSION} - tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION} - gzip ${NAME}-${VERSION}.tar - mv ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}.tar.gz + tar cf - ${NAME}-${VERSION} | \ + gzip -c > "${NAME}-${VERSION}.tar.gz" rm -rf "${NAME}-${VERSION}" .PHONY: all clean dist install uninstall