head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	2008.08.20.18.22.28;	author momjian;	state dead;
branches;
next	1.3;

1.3
date	2008.04.19.12.52.51;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	2008.04.19.12.42.35;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	2008.04.19.12.34.54;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Remove tools and documention for generating TODO.html.
@
text
@#!/bin/sh

# $PostgreSQL: pgsql/src/tools/TODO2html,v 1.3 2008/04/19 12:52:51 momjian Exp $:

# Converts doc/TODO text file to doc/src/FAQ/TODO.html HTML file

[ ! -f COPYRIGHT ] && echo "Run from top of source tree" 1>&2 && exit 1

# check if txt2html is installed
txt2html -h > /dev/null 2>&1
if [ "$?" -gt 1 ]
then	echo "Cannot find txt2html." 1>&2
	echo "You must install txt2html from http://txt2html.sourceforge.net." 1>&2
	exit 1
fi

cat doc/TODO |
# lines with only whitespace throws off txt2html bullet formatting
sed 's/^[ 	][ 	]*$//' |
sed 's/^\(\* -\)\(.*\)$/\1*\2*/' |
sed 's/^\([	][	]*o -\)\(.*\)$/\1*\2*/' |
txt2html --xhtml -s 100 -p 100 --xhtml --titlefirst \
	--body_deco ' bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#A00000" alink="#0000FF"' \
	--caps_tag '' > doc/src/FAQ/TODO.html
@


1.3
log
@Update doc script comments.
@
text
@d3 1
a3 1
# $PostgreSQL: pgsql/src/tools/TODO2html,v 1.2 2008/04/19 12:42:35 momjian Exp $:
@


1.2
log
@Add script FAQ2txt to convert HTML files to txt.  Add comment to TODO2html.
@
text
@d3 1
a3 1
# $PostgreSQL: pgsql/src/tools/TODO2html,v 1.1 2008/04/19 12:34:54 momjian Exp $:
d5 1
a5 1
# Converts TODO text file to HTML
@


1.1
log
@Add TODO2html tool to convert TODO to HTML.
@
text
@d3 3
a5 1
# $PostgreSQL: pgsql/src/tools/ccsym,v 1.7 2006/03/11 04:38:41 momjian Exp $:
@

