From 1066477d38fe362285529ba62e55855af0d2c07f Mon Sep 17 00:00:00 2001 From: Per Modin Date: Wed, 9 Aug 2023 13:10:53 +0100 Subject: [PATCH] doc: Set html title with pod2html for `make html` Pass title argument to pod2html, instead of editing the file afterwards. This helps avoiding broken tags in the resulting document. --- Makefile.PL | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 729cc1a..607a71c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -105,10 +105,9 @@ sub clean { ## no critic (RequireArgUnpacking) $string .= qq{\t@ gpg --verify check_postgres.pl.asc\n}; $string .= qq{\n\nhtml : \n\t}; $string .= <<'EOM'; - pod2html check_postgres.pl > check_postgres.pl.html + pod2html --title check_postgres.pl check_postgres.pl > check_postgres.pl.html @ perl -pi -e "s///" check_postgres.pl.html @ perl -pi -e "s~ git clone.*~ git clone git://bucardo.org/check_postgres.git~" check_postgres.pl.html - @ perl -pi -e "s~\S+(.+)~<title>check_postgres.pl\\1~" check_postgres.pl.html @ perl -pi -e "s~\`\`(.+?)''~"\\1"~g" check_postgres.pl.html @ rm -f pod2htmd.tmp pod2htmi.tmp EOM