Re: Website build script

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Website build script
Дата
Msg-id 20030311230955.GB7296@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: Website build script  (greg@turnstep.com)
Ответы Request for quote
Список 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 по дате отправления:

Предыдущее
От: Kevin Brown
Дата:
Сообщение: Re: Roadmap for FE/BE protocol redesign
Следующее
От: Dave Cramer
Дата:
Сообщение: Request for quote