From: Gilles Darold Date: Sat, 14 Sep 2019 13:13:33 +0000 (+0200) Subject: Fix table of content autogenerated in README.md X-Git-Tag: v11.1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9f519a796211fcfc3a107bafb914d53137474f1;p=pgbadger Fix table of content autogenerated in README.md --- diff --git a/Makefile.PL b/Makefile.PL index 37d39e7..313730c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -39,7 +39,7 @@ sub MY::postamble { return <<'EOMAKE'; README: doc/pgBadger.pod pod2text $^ > $@ - cat doc/pgBadger.pod | grep "=head1 " | sed 's/^=head1 \(.*\)/- [\1](#\1)/' > $@.md + cat doc/pgBadger.pod | grep "=head1 " | sed 's/^=head1 \(.*\)/- [\1](#\1)/' | sed 's/ /-/g' | sed 's/--/- /' > $@.md sed -i '1s/^/### TABLE OF CONTENTS\n\n/' $@.md echo >> $@.md pod2markdown $^ | sed 's/^# /### /' >> $@.md