From: Mark Wooding Date: Sun, 16 Jul 2017 14:05:49 +0000 (+0100) Subject: Makefile: Deploy countermeasures for dc(1) line splitting. X-Git-Url: https://git.distorted.org.uk/~mdw/ocb-tv/commitdiff_plain/2653ca06bad735dbd4bfd0dcd213a183f20a00cb Makefile: Deploy countermeasures for dc(1) line splitting. dc(1) splits long output lines, introducing backslash-newline pairs. Remove them again. --- diff --git a/Makefile b/Makefile index 3ab34fa..229d13b 100644 --- a/Makefile +++ b/Makefile @@ -116,7 +116,7 @@ auto.mk: Makefile \ eval n0=\$$b$${blksz}_N0; \ N0=$$(echo $$n0 | tr a-f A-F); \ - n1=$$(echo "16o 16i $$N0 D + p" | dc | tr A-F a-f); \ + n1=$$(echo "16o 16i $$N0 D + p" | dc | tr A-F a-f | tr -d '\\\n'); \ nsz=$$(( 4*($$(echo $$n0 | wc -c) - 1) )); \ echo "b$${blksz}_N1 = $$n1"; \ echo "b$${blksz}_NSZ0 = $$nsz"; \