|
1 |
| -$PostgreSQL: pgsql/src/tools/pgindent/README,v 1.32 2010/02/2601:40:15 momjian Exp $ |
| 1 | +$PostgreSQL: pgsql/src/tools/pgindent/README,v 1.33 2010/02/2602:11:52 momjian Exp $ |
2 | 2 |
|
3 | 3 | pgindent
|
4 | 4 | ========
|
5 | 5 |
|
6 | 6 | This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
|
7 |
| -*.l files. For source code typedefs, download: |
| 7 | +*.l files. |
| 8 | + |
| 9 | +1) Download the typedef file from the builfarm: |
8 | 10 |
|
9 | 11 | http://www.pgbuildfarm.org/cgi-bin/typedefs.pl
|
10 | 12 |
|
11 |
| -1) Run 'gmake distclean' from the top of the source tree to remove any |
12 |
| - derived C files. |
| 13 | +2) Download a fresh CVS checkout |
13 | 14 |
|
14 |
| -2) From the top of the source tree, run: |
| 15 | +3) From the top of the source tree, run: |
15 | 16 |
|
16 | 17 | find . -name '*.[ch]' -type f -print |
|
17 | 18 | egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
|
18 | 19 | xargs -n100 pgindent /tmp/typedefs.pl
|
19 | 20 |
|
20 |
| -3) pgindent cannot process the YY_INPUT macro generated by flex, so remove |
21 |
| - the generate C files so they are rebuilt: |
| 21 | +4) Remove any files that generate errors. |
22 | 22 |
|
23 |
| -rm -f $(find . -type f -name '*.l' -print | sed 's/l$/c/') |
| 23 | +5) Do a full test build. |
24 | 24 |
|
25 | 25 |
|
26 | 26 | ---------------------------------------------------------------------------
|
|