@@ -6,28 +6,34 @@ pgindent
66This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
77*.l files.
88
9- 1) Install pg_bsd_indent (see below for details)
9+ 1) Install pg_bsd_indent (see below for details).
1010
11- 2)Change directory to the top of the build tree .
11+ 2)Install entab (src/tools/entab/) .
1212
13- 3) Download the typedef file from the buildfarm:
13+ 3) Change directory to the top of the build tree.
14+
15+ 4) Download the typedef file from the buildfarm:
1416
1517wget -O src/tools/pgindent/typedefs.list http://buildfarm.postgresql.org/cgi-bin/typedefs.pl
1618
17- 4 ) Remove all derived files (pgindent has trouble with one of the flex macros):
19+ 5 ) Remove all derived files (pgindent has trouble with one of the flex macros):
1820
1921gmake maintainer-clean
2022
21- 5) Run pgindent:
23+ Or:
24+
25+ git clean -fdx
26+
27+ 6) Run pgindent:
2228
2329find . -name '*.[ch]' -type f -print | \
2430egrep -v -f src/tools/pgindent/exclude_file_patterns | \
2531xargs -n100 src/tools/pgindent/pgindent src/tools/pgindent/typedefs.list
2632
27- 6 ) Remove any files that generate errors and restore their original
33+ 7 ) Remove any files that generate errors and restore their original
2834 versions.
2935
30- 7 ) Do a full test build:
36+ 8 ) Do a full test build:
3137
3238run configure
3339# stop is only necessary if it's going to install in a location with an
@@ -37,7 +43,7 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
3743gmake -C contrib install
3844gmake installcheck-world
3945
40- 8 ) Indent the Perl MSVC code:
46+ 9 ) Indent the Perl MSVC code:
4147
4248cd src/tools/msvc
4349perltidy -b -bl -nsfs -naws -l=100 -ole=unix *.pl *.pm
@@ -47,7 +53,7 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
4753BSD indent
4854----------
4955
50- We have standardized on NetBSD's indent, and renamed it pg_bsd_indent.
56+ We have standardized on NetBSD's indent, and renamed it pg_bsd_indent.
5157We have fixed a few bugs which requre the NetBSD source to be patched
5258with indent.bsd.patch patch. A fully patched version is available at
5359ftp://ftp.postgresql.org/pub/dev.