change manual page styles

Thu, 17 Dec 2020 12:34:53 +0100

author
David Demelier <markand@malikania.fr>
date
Thu, 17 Dec 2020 12:34:53 +0100
changeset 32
2cd3c88e9f1a
parent 31
e902ab63f718
child 33
c166b5aaf90a

change manual page styles

Makefile file | annotate | diff | comparison | revisions
--- a/Makefile	Wed Dec 16 23:00:58 2020 +0100
+++ b/Makefile	Thu Dec 17 12:34:53 2020 +0100
@@ -20,7 +20,7 @@
 PANDOC_FLAGS=   -f markdown -t html5 --template templates/template.html
 MANDOC=         mandoc
 MANDOC_PDF=     -T pdf
-MANDOC_HTML=    -T html -O man=%N.html
+MANDOC_MD=      -T markdown
 VERSION=        3.1.0
 SOURCE=         irccd-${VERSION}.tar.xz
 WRKDIR=         irccd-${VERSION}
@@ -75,7 +75,7 @@
 	${PANDOC} ${PANDOC_FLAGS} -o $@ $<
 
 .1.html .5.html .7.html:
-	sed "s/@IRCCD_MAN_DATE@/October 06, 2019/" $< | ${MANDOC} ${MANDOC_HTML} > $@
+	sed "s/@IRCCD_MAN_DATE@/October 06, 2019/" $< | ${MANDOC} ${MANDOC_MD} < $< | ${PANDOC} ${PANDOC_FLAGS} -M title=${<F} -o $@
 
 .1.pdf .5.pdf .7.pdf:
 	sed "s/@IRCCD_MAN_DATE@/October 06, 2019/" $< | ${MANDOC} ${MANDOC_PDF} > $@

mercurial