mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
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.
This commit is contained in:
parent
fdaf44862b
commit
8e6c8da16a
@ -10,21 +10,21 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
|
|||||||
|
|
||||||
3) Change directory to the top of the build tree.
|
3) Change directory to the top of the build tree.
|
||||||
|
|
||||||
4) Download the typedef file from the buildfarm:
|
4) Remove all derived files (pgindent has trouble with one of the flex macros):
|
||||||
|
|
||||||
wget -O src/tools/pgindent/typedefs.list http://buildfarm.postgresql.org/cgi-bin/typedefs.pl
|
|
||||||
|
|
||||||
5) Remove all derived files (pgindent has trouble with one of the flex macros):
|
|
||||||
|
|
||||||
gmake maintainer-clean
|
gmake maintainer-clean
|
||||||
|
|
||||||
Or:
|
Or:
|
||||||
|
|
||||||
git clean -fdx
|
git clean -fdx
|
||||||
|
|
||||||
|
5) Download the typedef file from the buildfarm:
|
||||||
|
|
||||||
|
wget -O src/tools/pgindent/typedefs.list http://buildfarm.postgresql.org/cgi-bin/typedefs.pl
|
||||||
|
|
||||||
6) Run pgindent:
|
6) Run pgindent:
|
||||||
|
|
||||||
pgindent
|
src/tools/pgindent/pgindent
|
||||||
|
|
||||||
7) Remove any files that generate errors and restore their original
|
7) Remove any files that generate errors and restore their original
|
||||||
versions.
|
versions.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user