diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-20 17:43:07 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-20 17:43:07 +0200 |
commit | 65372679266e87b9dc8de8fe29d6f55c41956868 (patch) | |
tree | 95782ad01dd657c5a05696855133a5c93eb332fa /Makefile | |
parent | e746fcf957239d5e9210fdc6bad333fa9e1a7364 (diff) | |
download | chawan-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-- | Makefile | 2 |
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" |