Re: Website build script - Mailing list pgsql-hackers

From greg@turnstep.com
Subject Re: Website build script
Date
Msg-id 4b7e77f9e60b39cad55afb8404d67e12@biglumber.com
Whole thread Raw
In response to Website build script  ("Dave Page" <dpage@vale-housing.co.uk>)
Responses Re: Website build script  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



As far as the problem of generating an empty index file, you could have 
the buildpage() function redirect the lynx output to a temporary file 
($1.temp) and check that file for validity somehow (i.e. non-zero size 
or grep for a known string ("Postgres"?)) If it fails, send mail to 
webmaster and exit. If it succeeds, run mv $1.temp $1.html. Or use cp 
instead of mv and you have a copy of the previous page always preserved.


- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200303111731
-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE+bmSnvJuQZxSWSsgRAv3RAJ9vJ1Jaupd1XivctHzDunVv5sbWgwCdHmCC
9ehCuTJI5QOn79aV6AlYAxo=
=2BZ3
-----END PGP SIGNATURE-----




pgsql-hackers by date:

Previous
From: Gavin Sherry
Date:
Subject: Re: Website build script
Next
From: "Dave Page"
Date:
Subject: Re: Website build script