Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAOMwEm51472 for ; Sat, 24 Nov 2001 17:58:14 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id fAOMwBM16606; Sat, 24 Nov 2001 17:58:11 -0500 (EST) From: Bruce Momjian Message-Id: <200111242258.fAOMwBM16606@candle.pha.pa.us> Subject: Re: SGML build In-Reply-To: "from Vince Vielhaber at Nov 24, 2001 05:57:15 pm" To: Vince Vielhaber Date: Sat, 24 Nov 2001 17:58:11 -0500 (EST) CC: PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL90 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM713897883-16529-0_ Content-Transfer-Encoding: 7bit X-Archive-Number: 200111/87 X-Sequence-Number: 1160 --ELM713897883-16529-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII > 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 --ELM713897883-16529-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain Content-Disposition: inline; filename="/letc/pgsgml" : [ -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.*$;&;' build.html pipe sed 's;^.*:E:.*$;&;' 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 --ELM713897883-16529-0_--