Re: Website build script - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Website build script
Date
Msg-id 20030311230955.GB7296@dcc.uchile.cl
Whole thread Raw
In response to Re: Website build script  (greg@turnstep.com)
Responses Request for quote
List pgsql-hackers
On Tue, Mar 11, 2003 at 10:40:08PM -0000, greg@turnstep.com wrote:

> 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.

It seems much better to check $? on exit, and also to check stderr which
should be empty.

Same for the perl output.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El conflicto es el camino real hacia la union"


pgsql-hackers by date:

Previous
From: Kevin Brown
Date:
Subject: Re: Roadmap for FE/BE protocol redesign
Next
From: Dave Cramer
Date:
Subject: Request for quote