about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-20 17:43:07 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-20 17:43:07 +0200
commit65372679266e87b9dc8de8fe29d6f55c41956868 (patch)
tree95782ad01dd657c5a05696855133a5c93eb332fa /Makefile
parente746fcf957239d5e9210fdc6bad333fa9e1a7364 (diff)
downloadchawan-65372679266e87b9dc8de8fe29d6f55c41956868.tar.gz
add table_rewrite.sh
pandoc can only generate manpage tables from markdown tables, but the
markdown pipe table syntax is horrible. So instead of rewriting our markdown
documentation to use that syntax, just programmatically rewrite it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 942e2f09..d10ccf11 100644
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@ clean:
 
 .PHONY: manpage
 manpage:
-	sed '/<!-- TOCSTART -->/,/<!-- TOCEND -->/d' doc/config.md > .obj/cha-config.md
+	sed '/<!-- TOCSTART -->/,/<!-- TOCEND -->/d' doc/config.md | ./table_rewrite.sh > .obj/cha-config.md
 	pandoc --standalone --to man .obj/cha-config.md -o .obj/cha-config.5
 	cp doc/cha.1 "$(OBJDIR)/cha.1"