diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2022-07-16 13:46:08 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2022-07-16 13:56:56 +0200 |
commit | 14a2cd2881e86752fc517d031aa0e05be9abdaf1 (patch) | |
tree | 4abdc371d48f8c0e3f90319ab92293f094b409b7 /Makefile.am | |
parent | 9c9b249d1886f0e51fd17fe5a85ef5c23ad65a32 (diff) | |
download | fetchmail-14a2cd2881e86752fc517d031aa0e05be9abdaf1.tar.gz fetchmail-14a2cd2881e86752fc517d031aa0e05be9abdaf1.tar.bz2 fetchmail-14a2cd2881e86752fc517d031aa0e05be9abdaf1.zip |
manpage: switch HTML rendering to pandoc->docutils
remove manServer.pl
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am index 7085cc17..79ada427 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,7 +26,10 @@ nodist_bin_SCRIPTS= fetchmailconf python_PYTHON= $(pys) dist_man1_MANS+= $(pym) -CLEANFILES= $(nodist_bin_SCRIPTS) +CLEANFILES= $(nodist_bin_SCRIPTS) \ + fetchmail-man.html \ + fetchmail.html \ + fetchmail.rst # for gettext (used by fetchmail.c, NOT by GNU gettext) localedir= $(datadir)/locale @@ -200,7 +203,6 @@ EXTRA_DIST= $(DISTDOCS) $(distdirs) \ m4-local/ac_ma_search_package.m4 \ $(TESTS) t.rc t.regression \ dist-tools/html2txt \ - dist-tools/manServer.pl \ dist-tools/git-commit-po-updates.sh \ Doxyfile @@ -228,9 +230,8 @@ NOTES: design-notes.html esrs-design-notes.html $(srcdir)/dist-tools/html2txt TODO: todo.html $(srcdir)/dist-tools/html2txt AWK=$(AWK) $(SHELL) $(srcdir)/dist-tools/html2txt $(srcdir)/todo.html >$@ -fetchmail-man.html: fetchmail.man $(srcdir)/dist-tools/manServer.pl - env - "PATH=$$PATH" perl -T $(srcdir)/dist-tools/manServer.pl $(srcdir)/fetchmail.man >$@ \ - || { rm -f $@ ; exit 1 ; } +fetchmail-man.html: fetchmail.html + sed -Ee '/<colgroup>/,/<\/colgroup>/d' $< >$@ dist-hook: fetch-translations cd $(distdir) && find $(distdirs) po -name .git -type d -prune -exec rm -rf '{}' ';' @@ -265,7 +266,11 @@ git-check: SUFFIXES = .html .txt .rst .txt.html: - asciidoc --unsafe -a toc -a data-uri -o $@ $< + asciidoc --unsafe --attribute toc --attribute data-uri -o $@ $< +.man.rst: + pandoc --from man --to rst --table-of-contents --standalone --output $@ $< +.rst.html: + rst2html5.py --title "Fetchmail Manual" --strip-comments --rfc-references $< $@ # default to some non-default options when using "make distcheck" AM_DISTCHECK_CONFIGURE_FLAGS=--with-ssl |