1
$PostgreSQL: pgsql/src/tools/pgindent/README,v 1.29 2008/03/21 13:23:29 momjian Exp $
1
$PostgreSQL: pgsql/src/tools/pgindent/README,v 1.31 2009/06/10 01:51:44 momjian Exp $
6
This can format all PostgreSQL *.c and *.h files, but excludes *.y, and *.l
11
1) Build the source tree with _debug_ symbols and all possible configure options
13
2) Install to /usr/local/pgsql
15
3) Install all contrib modules
17
4) Save a list of typedefs by running:
19
src/tools/find_typedef /usr/local/pgsql/bin /usr/local/pgsql/lib > /tmp/pgtypedefs
21
5) Run 'gmake distclean' from the top of the source tree to remove any
6
This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
7
*.l files. For source code typedefs, download:
9
http://www.pgbuildfarm.org/cgi-bin/typedefs.pl
11
1) Run 'gmake distclean' from the top of the source tree to remove any
24
6) From the top of the source tree, run:
14
2) From the top of the source tree, run:
26
16
find . -name '*.[ch]' -type f -print |
27
17
egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
28
xargs -n100 pgindent /tmp/pgtypedefs
18
xargs -n100 pgindent /tmp/typedefs.pl
30
21
---------------------------------------------------------------------------
50
41
src/include/snowball/libstemmer/ and src/backend/snowball/libstemmer/
51
42
are excluded because those files are imported from an external project,
52
43
not maintained locally, and are machine-generated anyway.
45
---------------------------------------------------------------------------
47
Obsolete typedef list creation instructions:
48
--------------------------------------------
52
1) Build the source tree with _debug_ symbols and all possible configure options
54
2) Install to /usr/local/pgsql
56
3) Install all contrib modules
58
4) Save a list of typedefs by running:
60
src/tools/find_typedef /usr/local/pgsql/bin /usr/local/pgsql/lib > /tmp/pgtypedefs