Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54208a3

Browse files
committed
Add TODO2html tool to convert TODO to HTML.
1 parent3ca214e commit54208a3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

‎src/tools/TODO2html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
# $PostgreSQL: pgsql/src/tools/TODO2html,v 1.1 2008/04/19 12:34:54 momjian Exp $:
4+
5+
[!-f COPYRIGHT ]&&echo"Run from top of source tree"1>&2&&exit 1
6+
7+
# check if txt2html is installed
8+
txt2html -h> /dev/null2>&1
9+
if ["$?"-gt 1 ]
10+
thenecho"Cannot find txt2html."1>&2
11+
echo"You must install txt2html from http://txt2html.sourceforge.net."1>&2
12+
exit 1
13+
fi
14+
15+
cat doc/TODO|
16+
# lines with only whitespace throws off txt2html bullet formatting
17+
sed's/^[ ][ ]*$//'|
18+
sed's/^\(\* -\)\(.*\)$/\1*\2*/'|
19+
sed's/^\([][]*o -\)\(.*\)$/\1*\2*/'|
20+
txt2html --xhtml -s 100 -p 100 --xhtml --titlefirst \
21+
--body_deco' bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#A00000" alink="#0000FF"' \
22+
--caps_tag''> doc/src/FAQ/TODO.html

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp