1- $PostgreSQL: pgsql/src/tools/pgindent/README,v 1.30 2009/06/10 01:47:59 momjian Exp $
1+ $PostgreSQL: pgsql/src/tools/pgindent/README,v 1.31 2009/06/10 01:51:44 momjian Exp $
22
33pgindent
44========
@@ -8,31 +8,15 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
88
99http://www.pgbuildfarm.org/cgi-bin/typedefs.pl
1010
11- ---------------------------------------------------------------------------
12-
13- Obsolete typedef list creation instructions:
14- --------------------------------------------
15-
16- To use pgindent:
17-
18- 1) Build the source tree with _debug_ symbols and all possible configure options
19-
20- 2) Install to /usr/local/pgsql
21-
22- 3) Install all contrib modules
23-
24- 4) Save a list of typedefs by running:
25-
26- src/tools/find_typedef /usr/local/pgsql/bin /usr/local/pgsql/lib > /tmp/pgtypedefs
27-
28- 5) Run 'gmake distclean' from the top of the source tree to remove any
11+ 1) Run 'gmake distclean' from the top of the source tree to remove any
2912 derived C files.
3013
31- 6 ) From the top of the source tree, run:
14+ 2 ) From the top of the source tree, run:
3215
3316find . -name '*.[ch]' -type f -print |
3417egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
35- xargs -n100 pgindent /tmp/pgtypedefs
18+ xargs -n100 pgindent /tmp/typedefs.pl
19+
3620
3721---------------------------------------------------------------------------
3822
@@ -57,3 +41,21 @@ regression tests.
5741src/include/snowball/libstemmer/ and src/backend/snowball/libstemmer/
5842are excluded because those files are imported from an external project,
5943not maintained locally, and are machine-generated anyway.
44+
45+ ---------------------------------------------------------------------------
46+
47+ Obsolete typedef list creation instructions:
48+ --------------------------------------------
49+
50+ To use pgindent:
51+
52+ 1) Build the source tree with _debug_ symbols and all possible configure options
53+
54+ 2) Install to /usr/local/pgsql
55+
56+ 3) Install all contrib modules
57+
58+ 4) Save a list of typedefs by running:
59+
60+ src/tools/find_typedef /usr/local/pgsql/bin /usr/local/pgsql/lib > /tmp/pgtypedefs
61+