> On Sun, 30 Sep 2001, Bruce Momjian wrote: > > > > > On Sun, 30 Sep 2001, Bruce Momjian wrote: > > > > > > > > > > > > > > > > > > > > > just about to be moved to the new server, now that the new 18gi drive has > > > > > been installed ... plan on getting that done this afternoon ... > > > > > > > > Don't rush. I am setting up my system to check the SGML docs every 15 > > > > minutes and rebuild if necessary. Overnight builds are not frequent > > > > > > > Would it not be better to provide a means for developers to cause the rebuild on >demand? A 15-minute wait doesn't seem convenient to me. > > > > Yep, but it takes 15 minutes to build anyway, so I figured I would check > > very 15 minutes and adding another 15, that makes 1/2 hour. We don't > > have a mechanism to build only a few html files. You have to do the > > whole thing. > > > > Suggestions? > > I don't know enough about how it works (or doesn't), but the > delay looks worse. > > Add the delay for "missing the bus" and you're out to a 45-minute > delay.
True. > The need for on-demand is even greater, even something done > crudely: > > If a build's in process, flag the need. Added. I realized that I could have two running at the same time, which would be a disaster. > When the build completes, check if it has to be done again. Great idea! Added. > I assume that updates aren't so frequent that you'd be constantly > rebuilding, or so infrequently a missed rebuild would cause > serious problems. Yep. > Perhaps a way to check if a rebuild's in process so that if it's > slower than usual a developer can see it's not forgotten (or > who else is doing one). Script attached. I could poll cvs more frequently but it seems rude to hit the cvs server more frequently than every 15 minutes. If people want it polled more frequently, and Marc doesn't mind, I can change the polling interval here. Also, I added something that will show the files modified in the current build. -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
: trap "rm -f /tmp/$$ /tmp/$$a /tmp/pgsql_sgml" 0 1 2 3 15 [ -f /tmp/pgsql_sgml ] && exit touch /tmp/pgsql_sgml cd /u/src/gen/pgsql/sgml/pgsql/doc/src while pgcvs update . 2>&1 | grep -v '^?' >/tmp/$$a do echo "Build: `date`" >>build.dates cat /tmp/$$a >>build.dates echo "PostgreSQL CVS Documentation Build" >/tmp/$$ echo "==================================\n" >>/tmp/$$ echo "Build started: `date`\n" >>/tmp/$$ gmake 2>&1 | grep -v DTDDECL >> /tmp/$$ echo "Build completed: `date`\n" >>/tmp/$$ echo "Changes in this build:" cat /tmp/$$a >>/tmp/$$ echo "\nErrors appear in red.\n" >>/tmp/$$ 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;^.*error.*$;<FONT COLOR="RED">&</FONT>;' build.html pipe sed 's;^.*Error.*$;<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 /var/www/docs/main/writings/pgsql/sgml done
---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])