Skip to content

Commit

Permalink
doc: Set html title with pod2html for make html
Browse files Browse the repository at this point in the history
Pass title argument to pod2html, instead of editing the file afterwards.
This helps avoiding broken tags in the resulting document.
  • Loading branch information
pmodin authored and df7cb committed Sep 26, 2023
1 parent f6bc7f0 commit 1066477
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -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/<link.*?>//" check_postgres.pl.html
@ perl -pi -e "s~ git clone.*~ git clone git://bucardo.org/check_postgres.git</pre>~" check_postgres.pl.html
@ perl -pi -e "s~<title>\S+(.+)~<title>check_postgres.pl\\1~" check_postgres.pl.html
@ perl -pi -e "s~\`\`(.+?)''~&quot;\\1&quot;~g" check_postgres.pl.html
@ rm -f pod2htmd.tmp pod2htmi.tmp
EOM
Expand Down

0 comments on commit 1066477

Please sign in to comment.