summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2008-06-10 01:09:13 +0000
committerGreg Sabino Mullane2008-06-10 01:09:13 +0000
commit1ff4ea9cdb62ff0b12a3fe253fc7d828c76468d7 (patch)
tree9cabfe91c96b2dddd08dda8ee5c6066d38d42f91
parent1822296ee33861c152bb590c1c3b1307ebdd1fbe (diff)
Automate updating the version numbers in index.html
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d07db1532..5b3dab773 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,16 @@
+all: check_postgres.pl.html index.html
+
check_postgres.pl.html: check_postgres.pl
pod2html check_postgres.pl > check_postgres.pl.html
@ perl -pi -e "s/<link.*?>//" check_postgres.pl.html
@ rm -f pod2htmd.tmp pod2htmi.tmp
+index.html: check_postgres.pl
+
+ perl -pi -e "s/\d+\.\d+\.\d+/`grep describes check_postgres.pl | cut -d' ' -f6`/" index.html
+
critic:
perlcritic check_postgres.pl