Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/vndcompress Add comment explaining why piperestart.c...



details:   https://anonhg.NetBSD.org/src/rev/bfc9f58cc2da
branches:  trunk
changeset: 326204:bfc9f58cc2da
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jan 22 06:16:23 2014 +0000

description:
Add comment explaining why piperestart.cl2part is allowed to fail.

diffstat:

 usr.bin/vndcompress/Makefile |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 9968a80e957e -r bfc9f58cc2da usr.bin/vndcompress/Makefile
--- a/usr.bin/vndcompress/Makefile      Wed Jan 22 06:16:14 2014 +0000
+++ b/usr.bin/vndcompress/Makefile      Wed Jan 22 06:16:23 2014 +0000
@@ -89,6 +89,9 @@
        && head -c 700000 < /usr/share/dict/words \
        | ./vndcompress -l 655360 -k 1 -rR /dev/stdin ${.TARGET}.tmp \
        && mv -f ${.TARGET}.tmp ${.TARGET}
+# The following rule uses ; and not && on purpose: vndcompress is
+# supposed to fail (and it is even OK to interrupt!) so we can restart
+# and fill in the rest.
 piperestart.cl2part: vndcompress
        head -c 600000 < /usr/share/dict/words \
        | ./vndcompress -l 655360 -k 1 /dev/stdin ${.TARGET}.tmp; \



Home | Main Index | Thread Index | Old Index