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 $
2
2
3
3
pgindent
4
4
========
@@ -8,23 +8,24 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
8
8
9
9
1) Change directory to the top of the build tree.
10
10
11
- 1 ) Download the typedef file from the builfarm:
11
+ 2 ) Download the typedef file from the builfarm:
12
12
13
13
wget -O src/tools/pgindent/typedefs.list http://www.pgbuildfarm.org/cgi-bin/typedefs.pl
14
14
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):
18
17
19
- 3) Run pgindent:
18
+ gmake maintainer-clean
19
+
20
+ 4) Run pgindent:
20
21
21
22
find . -name '*.[ch]' -type f -print |
22
23
egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
23
24
xargs -n100 pgindent src/tools/pgindent/typedefs.list
24
25
25
- 4 ) Remove any files that generate errors.
26
+ 5 ) Remove any files that generate errors.
26
27
27
- 5 ) Do a full test build.
28
+ 6 ) Do a full test build.
28
29
29
30
30
31
---------------------------------------------------------------------------