[check_postgres] [commit] Stupid pod2html

check_postgres at bucardo.org check_postgres at bucardo.org
Mon Sep 22 16:31:14 UTC 2008


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

Stupid pod2html

---
 Makefile               |    3 +++
 check_postgres.pl.html |   10 +++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 2a66506..15068a9 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,9 @@ check_postgres.pl.html: check_postgres.pl
 	pod2html check_postgres.pl > check_postgres.pl.html
 	@ perl -pi -e "s/<link.*?>//" check_postgres.pl.html
 	perl -pi -e "s~ git clone.*~ git clone http://bucardo.org/check_postgres.git</pre>~" check_postgres.pl.html
+	perl -pi -e "s~<title>\S+(.+)~<title>check_postgres.pl\\1</TITLE>~" check_postgres.pl.html
+	perl -pi -e "s~.*</title>~~" check_postgres.pl.html
+	perl -pi -e "s~</TITLE>~</title>~" check_postgres.pl.html
 	@ rm -f pod2htmd.tmp pod2htmi.tmp
 
 index.html: check_postgres.pl
diff --git a/check_postgres.pl.html b/check_postgres.pl.html
index 2ee4119..550b668 100644
--- a/check_postgres.pl.html
+++ b/check_postgres.pl.html
@@ -2,8 +2,8 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-<title>B&lt;check_postgres.pl&gt; - a Postgres monitoring script for Nagios, MRTG, and others
-This documents describes check_postgres.pl version 2.1.4</title>
+<title>check_postgres.pl - a Postgres monitoring script for Nagios, MRTG, and others</title>
+
 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
 </head>
@@ -325,7 +325,7 @@ your psql location into the <code>$PSQL</code> variable, also near the top of th
 <dt><strong><a name="item__2d_2doutput_3dval"><strong>--output=VAL</strong></a></strong></dt>
 
 <dd>
-<p>Determines the format of the output, for use in various programs. The default is 'nagios'. No 
+<p>Determines the format of the output, for use in various programs. The default is 'nagios'. No
 other systems are supported yet.</p>
 </dd>
 <dt><strong><a name="item__2d_2dmrtg_3dval"><strong>--mrtg=VAL</strong></a></strong></dt>
@@ -336,8 +336,8 @@ other systems are supported yet.</p>
 <dt><strong><a name="item__2d_2ddebugoutput_3dval"><strong>--debugoutput=VAL</strong></a></strong></dt>
 
 <dd>
-<p>Outputs the exact string returned by psql, for use in debugging. The value is one or more letters, 
-deterining if the output is displayed or not, where 'a' = all, 'c' = critical, 'w' = warning, 
+<p>Outputs the exact string returned by psql, for use in debugging. The value is one or more letters,
+which determine if the output is displayed or not, where 'a' = all, 'c' = critical, 'w' = warning,
 'o' = ok, and 'u' = unknown. Letters can be combined.</p>
 </dd>
 </dl>
-- 
1.5.5.4



More information about the Check_postgres mailing list