Re: SGML build
От | Bruce Momjian |
---|---|
Тема | Re: SGML build |
Дата | |
Msg-id | 200111242258.fAOMwBM16606@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: SGML build (Vince Vielhaber <vev@michvhf.com>) |
Список | pgsql-docs |
> On Sat, 24 Nov 2001, Bruce Momjian wrote: > > > > On Sat, 24 Nov 2001, Bruce Momjian wrote: > > > > > > > Vince, now that SGML is building on the main server, do you want to > > > > point to that one now from the developers page? Do people want me to > > > > keep my SGML build here? I have it down to every 15 minutes. > > > > > > Is the 15 mins on your site, the main server or both? > > > > Just my site. I was also asking if we are going to start scheduling > > SGML builds on the server. > > We can, what needs to be done? Beats me. I can give you my script. It is attached. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 : [ -f /tmp/pgsql_sgml ] && exit trap "rm -f /tmp/$$ /tmp/$$a /tmp/$$b /tmp/pgsql_sgml" 0 1 2 3 15 touch /tmp/pgsql_sgml cd /pgsgmlbuild >/tmp/$$a while test "X$1" = "X-f" || pgcvs update sgml 2>&1 | grep -v '\[update aborted\]' | grep -v '^?' >/tmp/$$a do echo "\nBuild: `date`" >>build.dates cat /tmp/$$a >>build.dates echo "PostgreSQL CVS Documentation Build" >/tmp/$$ echo "----------------------------------\n" >>/tmp/$$ echo "Build started: `date`" >>/tmp/$$ gmake postgres.tar.gz 2>&1 | grep -v DTDDECL > /tmp/$$b echo "Build completed: `date`\n" >>/tmp/$$ echo "Changes in this build:" >>/tmp/$$ cat /tmp/$$a >>/tmp/$$ echo "\nA full copy of this documenation is at ftp://candle.pha.pa.us/pub/postgresql/postgresql-docs.tar.gz\n" >>/tmp/$$ if grep -qi 'error' /tmp/$$b || grep -qi ':E:' /tmp/$$b then echo "\nThere were errors in this build. They appear in red.\n" >>/tmp/$$ cat /tmp/$$b >>/tmp/$$ else echo "\nBuild completed successfully." >>/tmp/$$ fi pipe sed 's;HTML.manifest:;HTML.manifest :;g' /tmp/$$ txt2html -m -s 100 -p 100 --title "PostgreSQL CVS Docs built `date`" \ --link /u/txt2html/txt2html.dict \ --append_head /u/txt2html/BODY /tmp/$$ >build.html pipe sed 's;^.*[Ee]rror.*$;<FONT COLOR="RED">&</FONT>;' build.html pipe sed 's;^.*:E:.*$;<FONT COLOR="RED">&</FONT>;' build.html rm -f /var/www/docs/main/writings/pgsql/sgml/* mv sgml/*.html build.html /var/www/docs/main/writings/pgsql/sgml cp sgml/*.css sgml/*.gif /var/www/docs/main/writings/pgsql/sgml cp postgres.tar.gz /pgftp/postgresql-docs.tar.gz gmake clean >/dev/null 2>&1 [ "X$1" = "X-f" ] && break done
В списке pgsql-docs по дате отправления: