# HG changeset patch # User Guido Berhoerster # Date 1391793041 -3600 # Node ID 82a31628a26daef9dd00526b976135a6aa31b2b7 # Parent b84b4ae937e3b3da2657795c48abdc91fbe57daf Use pax to generate tarballs Use pax instead of tar to generate tarballs which allows direct manipulation of paths without any hacks. diff -r b84b4ae937e3 -r 82a31628a26d Makefile --- a/Makefile Fri Feb 07 17:55:13 2014 +0100 +++ b/Makefile Fri Feb 07 18:10:41 2014 +0100 @@ -32,7 +32,7 @@ INSTALL := install INSTALL.exec := $(INSTALL) -D -m 0755 INSTALL.data := $(INSTALL) -D -m 0644 -TAR := tar +PAX := pax GZIP := gzip SED := sed MSGFMT := msgfmt @@ -108,8 +108,7 @@ rm -f $(patsubst %.o,%.d,$(OBJS)) dist: clobber - rm -f $(DISTNAME) - ln -s -f . $(DISTNAME) - $(TAR) cv $(DISTNAME)/* | $(GZIP) > $(DISTNAME).tar.gz + $(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \ + -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz -include $(patsubst %.o,%.d,$(OBJS))