From c46c39e81ebda551039cc6f3858ac2f17ce7f48b Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane <greg@endpoint.com> Date: Mon, 4 May 2009 09:30:54 -0400 Subject: [PATCH] Don't make html updating part of make: we'll ship it. Make a separate 'html' target. Don't ship index.html file. --- MANIFEST | 1 - MANIFEST.SKIP | 1 + Makefile.PL | 14 ++++++++------ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/MANIFEST b/MANIFEST index 4119589b6..06a306c22 100644 --- a/MANIFEST +++ b/MANIFEST @@ -4,7 +4,6 @@ check_postgres.pl.html README SIGNATURE Makefile.PL -index.html MANIFEST MANIFEST.SKIP .gitignore diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index 24da8d88c..5d9d5db23 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -6,3 +6,4 @@ Makefile pm_to_blib TODO tar.gz$ +index.html \ No newline at end of file diff --git a/Makefile.PL b/Makefile.PL index 3e98ffaff..c6855340a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -66,12 +66,7 @@ my %opts = $string .= qq{\t@ gpg --verify check_postgres.pl.asc\n}; $string .= qq{\nrelease : \n\t}; $string .= q{perl -pi -e "s/released on ([^\.]+)/released on `date +\"%B %-d, %Y\"`/" index.html}; - $string .= "\n\n"; - return $string; - } - - sub manifypods { - my $string = shift->SUPER::manifypods(@_); + $string .= qq{\n\nhtml : \n\t}; $string .= <<'EOM'; pod2html check_postgres.pl > check_postgres.pl.html @ perl -pi -e "s/<link.*?>//" check_postgres.pl.html @@ -81,6 +76,13 @@ my %opts = @ perl -pi -e "s~</TITLE>~</title>~" check_postgres.pl.html @ perl -pi -e "s~\`\`(.+?)''~"\\1"~g" check_postgres.pl.html @ rm -f pod2htmd.tmp pod2htmi.tmp +EOM + return $string; + } + + sub manifypods { + my $string = shift->SUPER::manifypods(@_); + $string .= <<'EOM'; @ perl -pi -e "s/\d+\.\d+\.\d+/`grep describes check_postgres.pl | cut -d' ' -f6`/" index.html EOM return $string; -- 2.39.5