Skip to content

Commit 2111725

Browse files
committed
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).
1 parent 7a0ccc4 commit 2111725

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mk/dist.mk

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ $(PKG_TAR): $(PKG_FILES)
7777
$(Q)mkdir -p tmp/dist/$(PKG_NAME)
7878
$(Q)tar \
7979
-C $(S) \
80+
-f - \
8081
--exclude-vcs \
8182
--exclude=*~ \
8283
--exclude=*.pyc \
@@ -86,7 +87,7 @@ $(PKG_TAR): $(PKG_FILES)
8687
--exclude=*/llvm/test/*/*/*.ll \
8788
--exclude=*/llvm/test/*/*/*.td \
8889
--exclude=*/llvm/test/*/*/*.s \
89-
-c $(UNROOTED_PKG_FILES) | tar -x -C tmp/dist/$(PKG_NAME)
90+
-c $(UNROOTED_PKG_FILES) | tar -x -f - -C tmp/dist/$(PKG_NAME)
9091
@$(call E, making $@)
9192
$(Q)tar -czf $(PKG_TAR) -C tmp/dist $(PKG_NAME)
9293
$(Q)rm -Rf tmp/dist/$(PKG_NAME)

0 commit comments

Comments
 (0)