summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-12-18 17:56:44 -0800
committerMichael Forney <mforney@mforney.org>2016-12-19 00:05:57 -0800
commit2df9f5b0f3914ca9dc1fa517d2f4d530a01943a2 (patch)
tree418ceb825fc89f9ab0320f62d4e3e5eca70bab87
parentd4bc69fbd791014238679535745593bbf2a44ff9 (diff)
Invoke gzip with <$f, since pigz doesn't fail if it is missing
-rw-r--r--pkg/man-pages-posix/manpages.rc2
-rw-r--r--rules.ninja2
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/man-pages-posix/manpages.rc b/pkg/man-pages-posix/manpages.rc
index efcb823e..18faf96d 100644
--- a/pkg/man-pages-posix/manpages.rc
+++ b/pkg/man-pages-posix/manpages.rc
@@ -23,7 +23,7 @@ pages=()
for(d in man?p) {
mkdir -p $wd/$outdir/$d
for(f in $d/*) if(fs man-pages-posix share/man/$f.gz) {
- gzip -c -9 -n $f > $wd/$outdir/$f.gz
+ gzip -c -9 -n < $f > $wd/$outdir/$f.gz
pages=($pages $f)
}
}
diff --git a/rules.ninja b/rules.ninja
index 7f8dae5b..dc86e73c 100644
--- a/rules.ninja
+++ b/rules.ninja
@@ -45,7 +45,7 @@ rule mergeperms
command = sort -k 2 -m $in >$out.tmp && mv $out.tmp $out
rule gzip
- command = gzip -c -9 -n $in >$out.tmp && mv $out.tmp $out
+ command = gzip -c -9 -n <$in >$out.tmp && mv $out.tmp $out
rule yacc
command = oldcwd=$$PWD && cd $outdir && $yacc $yaccflags $$oldcwd/$in