projects/pk-update-icon

changeset 36:82a31628a26d

Use pax to generate tarballs

Use pax instead of tar to generate tarballs which allows direct manipulation of
paths without any hacks.
author Guido Berhoerster <gber@opensuse.org>
date Fri Feb 07 18:10:41 2014 +0100 (2014-02-07)
parents b84b4ae937e3
children 7e44a0a8dc2c
files Makefile
line diff
     1.1 --- a/Makefile	Fri Feb 07 17:55:13 2014 +0100
     1.2 +++ b/Makefile	Fri Feb 07 18:10:41 2014 +0100
     1.3 @@ -32,7 +32,7 @@
     1.4  INSTALL :=	install
     1.5  INSTALL.exec :=	$(INSTALL) -D -m 0755
     1.6  INSTALL.data :=	$(INSTALL) -D -m 0644
     1.7 -TAR :=		tar
     1.8 +PAX :=		pax
     1.9  GZIP :=		gzip
    1.10  SED :=		sed
    1.11  MSGFMT :=	msgfmt
    1.12 @@ -108,8 +108,7 @@
    1.13  	rm -f $(patsubst %.o,%.d,$(OBJS))
    1.14  
    1.15  dist: clobber
    1.16 -	rm -f $(DISTNAME)
    1.17 -	ln -s -f . $(DISTNAME)
    1.18 -	$(TAR) cv $(DISTNAME)/* | $(GZIP) > $(DISTNAME).tar.gz
    1.19 +	$(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \
    1.20 +	    -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz
    1.21  
    1.22  -include $(patsubst %.o,%.d,$(OBJS))