~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to src/tools/pgindent/README

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 $
2
2
 
3
3
pgindent
4
4
========
5
5
 
6
 
This can format all PostgreSQL *.c and *.h files, but excludes *.y, and *.l
7
 
files.
8
 
 
9
 
To use pgindent:
10
 
 
11
 
1) Build the source tree with _debug_ symbols and all possible configure options
12
 
 
13
 
2) Install to /usr/local/pgsql
14
 
 
15
 
3) Install all contrib modules
16
 
 
17
 
4) Save a list of typedefs by running:
18
 
 
19
 
        src/tools/find_typedef /usr/local/pgsql/bin /usr/local/pgsql/lib > /tmp/pgtypedefs
20
 
 
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:
 
8
 
 
9
        http://www.pgbuildfarm.org/cgi-bin/typedefs.pl
 
10
 
 
11
1) Run 'gmake distclean' from the top of the source tree to remove any
22
12
   derived C files.
23
13
 
24
 
6) From the top of the source tree, run:
 
14
2) From the top of the source tree, run:
25
15
 
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
 
19
 
29
20
 
30
21
---------------------------------------------------------------------------
31
22
 
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.
 
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