]> granicus.if.org Git - postgresql/blob - src/tools/TODO2html
Move USE_WIDE_UPPER_LOWER define to c.h, and remove TS_USE_WIDE and use
[postgresql] / src / tools / TODO2html
1 #!/bin/sh
2
3 # $PostgreSQL: pgsql/src/tools/TODO2html,v 1.3 2008/04/19 12:52:51 momjian Exp $:
4
5 # Converts doc/TODO text file to doc/src/FAQ/TODO.html HTML file
6
7 [ ! -f COPYRIGHT ] && echo "Run from top of source tree" 1>&2 && exit 1
8
9 # check if txt2html is installed
10 txt2html -h > /dev/null 2>&1
11 if [ "$?" -gt 1 ]
12 then    echo "Cannot find txt2html." 1>&2
13         echo "You must install txt2html from http://txt2html.sourceforge.net." 1>&2
14         exit 1
15 fi
16
17 cat doc/TODO |
18 # lines with only whitespace throws off txt2html bullet formatting
19 sed 's/^[       ][      ]*$//' |
20 sed 's/^\(\* -\)\(.*\)$/\1*\2*/' |
21 sed 's/^\([     ][      ]*o -\)\(.*\)$/\1*\2*/' |
22 txt2html --xhtml -s 100 -p 100 --xhtml --titlefirst \
23         --body_deco ' bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#A00000" alink="#0000FF"' \
24         --caps_tag '' > doc/src/FAQ/TODO.html