1- $PostgreSQL: pgsql/src/tools/pgindent/README,v 1.35 2010/02/2613:50:34 momjian Exp $
1+ $PostgreSQL: pgsql/src/tools/pgindent/README,v 1.36 2010/02/2615:42:36 momjian Exp $
22
33pgindent
44========
@@ -8,23 +8,24 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
88
991) Change directory to the top of the build tree.
1010
11- 1 ) Download the typedef file from the builfarm:
11+ 2 ) Download the typedef file from the builfarm:
1212
1313wget -O src/tools/pgindent/typedefs.list http://www.pgbuildfarm.org/cgi-bin/typedefs.pl
1414
15- 2) Download a fresh CVS checkout. This will guarantee you do not have any
16- derived bison or flex C files. (pgindent has trouble with one of the
17- flex macros.)
15+ 3) Clean out all derived files (pgindent has trouble with one of the
16+ flex macros):
1817
19- 3) Run pgindent:
18+ gmake maintainer-clean
19+
20+ 4) Run pgindent:
2021
2122find . -name '*.[ch]' -type f -print |
2223egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
2324xargs -n100 pgindent src/tools/pgindent/typedefs.list
2425
25- 4 ) Remove any files that generate errors.
26+ 5 ) Remove any files that generate errors.
2627
27- 5 ) Do a full test build.
28+ 6 ) Do a full test build.
2829
2930
3031---------------------------------------------------------------------------