> On Tue, 27 Nov 2001, Bruce Momjian wrote:
>
> > > Bruce Momjian writes:
> > >
> > > > > You are going to love this answer. A jdbc person CVS updated the TODO
> > > > > list, so I did a dummy edit of TODO so the web site would be udpated.
> > > >
> > > > I now see that I didn't need to modify the date to get the web site
> > > > updated. I have a separate script that just pushes it to the web site.
> > > > I will use that in the future.
> > >
> > > Maybe a cron job would be a possible answer?
> >
> > Well, Vince tried to take what I do here and reproduced it on the pgsql
> > server so that TODO would automatically get converted from a flat file
> > to HTML but he had trouble getting it to work.
>
> I got it to convert, but didn't get it to give the links that you get.
OK, the script is attached. Notice the 'sed' line that does the
TODO.detail links.
--
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
:
trap "rm -rf /tmp/$$" 0 1 2 3 15
txt2html -m -s 100 -p 100 --title "PostgreSQL TODO list" \
--link /u/txt2html/txt2html.dict \
--append_head /u/txt2html/BODY /pgtop/doc/TODO |
sed 's;\[\([^]]*\)\];[<A HREF="http://candle.pha.pa.us/cgi-bin/pgtodo?\1">\1</A>];g' >/tmp/$$
expect -c "
set timeout -1
eval spawn scp -q /tmp/$$ momjian@postgresql.org:/home/momjian/docs/TODO.html
expect \"password:\"
send \"bruski\\r\"
interact
exit"
cd /pgtop/doc
chown postgres TODO
pgcvs commit -m 'Update TODO list.' TODO