[check_postgres] [commit] Don't make html updating part of make: we'll ship it.

check_postgres at bucardo.org check_postgres at bucardo.org
Mon May 4 13:31:26 UTC 2009


Committed by Greg Sabino Mullane <greg at endpoint.com>

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 4119589..06a306c 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 24da8d8..5d9d5db 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 3e98ffa..c685534 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~\`\`(.+?)''~&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;
-- 
1.6.0.5



More information about the Check_postgres mailing list