Skip to content

Commit 8e6c8da

Browse files
committed
pgindent: Fix order in instructions
The previous order of steps didn't literally work, because git clean -fdx would delete the downloaded typedefs.list. Also, pgindent needs to be called with a path when one is in at the top of the build tree.
1 parent fdaf448 commit 8e6c8da

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/tools/pgindent/README

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
1010

1111
3) Change directory to the top of the build tree.
1212

13-
4) Download the typedef file from the buildfarm:
14-
15-
wget -O src/tools/pgindent/typedefs.list http://buildfarm.postgresql.org/cgi-bin/typedefs.pl
16-
17-
5) Remove all derived files (pgindent has trouble with one of the flex macros):
13+
4) Remove all derived files (pgindent has trouble with one of the flex macros):
1814

1915
gmake maintainer-clean
2016

2117
Or:
2218

23-
git clean -fdx
19+
git clean -fdx
20+
21+
5) Download the typedef file from the buildfarm:
22+
23+
wget -O src/tools/pgindent/typedefs.list http://buildfarm.postgresql.org/cgi-bin/typedefs.pl
2424

2525
6) Run pgindent:
2626

27-
pgindent
27+
src/tools/pgindent/pgindent
2828

2929
7) Remove any files that generate errors and restore their original
3030
versions.

0 commit comments

Comments
 (0)