commit 1adde9aa1c1fe4a1f6bffdecdc14e2992c406cfc
parent 45e69028b5b1b0801ee847166b90fc41538d3d99
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 9 Dec 2020 11:49:16 +0100
Makefile: clean up conversion of html posts to plaintext
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -32,9 +32,7 @@ view:
converthtml:
for f in pages/*.html; do \
- title="$$(sed -n 's/^title.*=//p' "$${f%%.html}.cfg")"; \
out="$$(printf '%s' "$$f" | sed 's/[0-9][0-9][0-9]-//;s/\.html$$/.txt/')"; \
- printf '--- %s ---\n\n' "$$title" > "$$out"; \
w3m -dump -T text/html -o display_link_number=1 "$$f" >> "$$out"; \
done