Don't make html updating part of make: we'll ship it.
authorGreg Sabino Mullane <greg@endpoint.com>
Mon, 4 May 2009 13:30:54 +0000 (09:30 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Mon, 4 May 2009 13:30:54 +0000 (09:30 -0400)
Make a separate 'html' target.
Don't ship index.html file.

MANIFEST
MANIFEST.SKIP
Makefile.PL

index 4119589b6a08f62f72b4102fe2008d552dca02a4..06a306c22e5c14f98aca983786ba469388327a5b 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -4,7 +4,6 @@ check_postgres.pl.html
 README
 SIGNATURE
 Makefile.PL
-index.html
 MANIFEST
 MANIFEST.SKIP
 .gitignore
index 24da8d88cdd92b5bd7d6926f1fa52737c9e067b9..5d9d5db2383e398d30350705b8201a7ee8e722d1 100644 (file)
@@ -6,3 +6,4 @@ Makefile
 pm_to_blib
 TODO
 tar.gz$
+index.html
\ No newline at end of file
index 3e98ffaff051460e811d463b301500e6b84fcd19..c6855340ad95fc85425488b17911ed5459fdc4be 100644 (file)
@@ -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~\`\`(.+?)''~&quot;\\1&quot;~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;