chiark
/
gitweb
/
~mdw
/
ocb-tv
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9703e34
)
Makefile: Deploy countermeasures for dc(1) line splitting.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 16 Jul 2017 14:05:49 +0000
(15:05 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 16 Jul 2017 14:58:32 +0000
(15:58 +0100)
dc(1) splits long output lines, introducing backslash-newline pairs.
Remove them again.
Makefile
patch
|
blob
|
blame
|
history
diff --git
a/Makefile
b/Makefile
index 3ab34fa0e211eb54fca50a90723b6e8ef467a342..229d13b91894aaa8f82fd3082d77b025e7780f85 100644
(file)
--- 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"; \