about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSébastien Marie <semarie@users.noreply.github.com>2016-05-05 06:41:49 +0200
committerSébastien Marie <semarie@users.noreply.github.com>2016-05-05 06:48:35 +0200
commit21117259b096b5e3438bcb0bcb918f8df860c9a1 (patch)
tree86b5185142fed5aa3d4968313d685be21439c38b
parent7a0ccc458f32b2cb2dee33d7a02954a70c09c34b (diff)
downloadrust-21117259b096b5e3438bcb0bcb918f8df860c9a1.tar.gz
rust-21117259b096b5e3438bcb0bcb918f8df860c9a1.zip
specify the archive file as stdout
If the `-f` option isn't given, GNU tar will use environment variable
`TAPE` first, and next use the compiled-in default, which isn't
necessary `stdout` (it is the tape device `/dev/rst0` under OpenBSD for
example).
-rw-r--r--mk/dist.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/dist.mk b/mk/dist.mk
index 7fe28a7e262..9491311ea7c 100644
--- a/mk/dist.mk
+++ b/mk/dist.mk
@@ -77,6 +77,7 @@ $(PKG_TAR): $(PKG_FILES)
 	$(Q)mkdir -p tmp/dist/$(PKG_NAME)
 	$(Q)tar \
          -C $(S) \
+         -f - \
          --exclude-vcs \
          --exclude=*~ \
          --exclude=*.pyc \
@@ -86,7 +87,7 @@ $(PKG_TAR): $(PKG_FILES)
          --exclude=*/llvm/test/*/*/*.ll \
          --exclude=*/llvm/test/*/*/*.td \
          --exclude=*/llvm/test/*/*/*.s \
-         -c $(UNROOTED_PKG_FILES) | tar -x -C tmp/dist/$(PKG_NAME)
+         -c $(UNROOTED_PKG_FILES) | tar -x -f - -C tmp/dist/$(PKG_NAME)
 	@$(call E, making $@)
 	$(Q)tar -czf $(PKG_TAR) -C tmp/dist $(PKG_NAME)
 	$(Q)rm -Rf tmp/dist/$(PKG_NAME)