tMakefile: clean up conversion of html posts to plaintext - adamsgaard.dk - my … | |
git clone git://src.adamsgaard.dk/adamsgaard.dk | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 1adde9aa1c1fe4a1f6bffdecdc14e2992c406cfc | |
parent 45e69028b5b1b0801ee847166b90fc41538d3d99 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 9 Dec 2020 11:49:16 +0100 | |
Makefile: clean up conversion of html posts to plaintext | |
Diffstat: | |
M Makefile | 2 -- | |
1 file changed, 0 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
t@@ -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… | |
- printf '--- %s ---\n\n' "$$title" > "$$out"; \ | |
w3m -dump -T text/html -o display_link_number=1 "$$f" >> "$$ou… | |
done | |