From 0c1f9fe19dacb213c08bce5dad502eeaeb52eb9c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 31 Oct 2009 06:06:21 +0000 Subject: GNUmakefile: fix non-portable tar(1) usage Explicitly specify that we mean to use stdin/stdout since not all tar(1) implementations default to it. --- GNUmakefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 963809c..551b77a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -57,7 +57,8 @@ http: lib/unicorn_http.$(DLEXT) $(test_prefix)/.stamp: $(inst_deps) mkdir -p $(test_prefix)/.ccache - tar c $(inst_deps) GIT-VERSION-GEN | (cd $(test_prefix) && tar x) + tar cf - $(inst_deps) GIT-VERSION-GEN | \ + (cd $(test_prefix) && tar xf -) $(MAKE) -C $(test_prefix) clean $(MAKE) -C $(test_prefix) http shebang > $@ @@ -249,8 +250,8 @@ $(pkgtgz): manifest fix-perms @test -n "$(distdir)" $(RM) -r $(distdir) mkdir -p $(distdir) - tar c `cat .manifest` | (cd $(distdir) && tar x) - cd pkg && tar c $(basename $(@F)) | gzip -9 > $(@F)+ + tar cf - `cat .manifest` | (cd $(distdir) && tar xf -) + cd pkg && tar cf - $(basename $(@F)) | gzip -9 > $(@F)+ mv $@+ $@ package: $(pkgtgz) $(pkggem) -- cgit v1.2.3-24-ge0c7