Skip to content

Commit 1066477

Browse files
pmodindf7cb
authored andcommitted
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.
1 parent f6bc7f0 commit 1066477

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile.PL

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,9 @@ sub clean { ## no critic (RequireArgUnpacking)
105105
$string .= qq{\t@ gpg --verify check_postgres.pl.asc\n};
106106
$string .= qq{\n\nhtml : \n\t};
107107
$string .= <<'EOM';
108-
pod2html check_postgres.pl > check_postgres.pl.html
108+
pod2html --title check_postgres.pl check_postgres.pl > check_postgres.pl.html
109109
@ perl -pi -e "s/<link.*?>//" check_postgres.pl.html
110110
@ perl -pi -e "s~ git clone.*~ git clone git://bucardo.org/check_postgres.git</pre>~" check_postgres.pl.html
111-
@ perl -pi -e "s~<title>\S+(.+)~<title>check_postgres.pl\\1~" check_postgres.pl.html
112111
@ perl -pi -e "s~\`\`(.+?)''~&quot;\\1&quot;~g" check_postgres.pl.html
113112
@ rm -f pod2htmd.tmp pod2htmi.tmp
114113
EOM

0 commit comments

Comments
 (0)