tunix: fix for tar on FreeBSD (#202) - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 74223e0b4fe2edc1e8aa9665f916603a9f14323d
(DIR) parent ad2d49503b1242be501ab92832400ef344a6afae
(HTM) Author: Xiao-Yong <jinxiaoyong@gmail.com>
Date: Fri, 16 Nov 2018 09:14:02 -0600
unix: fix for tar on FreeBSD (#202)
Use the widely accepted /dev/stdout.
Diffstat:
M unix/mkfile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/unix/mkfile b/unix/mkfile
t@@ -38,15 +38,15 @@ test-%:V:
lib%.tgz:V:
mk new-$stem
- tar c lib$stem | gzip > $target
+ tar cf /dev/stdout lib$stem | gzip > $target
libregexp9.tgz:V:
mk new-regexp
- tar c libregexp | gzip >$target
+ tar cf /dev/stdout libregexp | gzip >$target
mk.tgz:V:
mk new-mk
- tar c mk | gzip > $target
+ tar cf /dev/stdout mk | gzip > $target
mk-with-libs.tgz:V:
mk new-utf
t@@ -59,7 +59,7 @@ mk-with-libs.tgz:V:
mv libutf libfmt libbio libregexp mk zot
mv zot mk
cp make/Makefile.all mk/Makefile
- tar c mk | gzip > $target
+ tar cf /dev/stdout mk | gzip > $target
rm -r mk
tgz:V: libutf.tgz libfmt.tgz libregexp9.tgz libbio.tgz mk.tgz mk-with-libs.tgz