]> granicus.if.org Git - postgresql/commitdiff
pgindent: Fix order in instructions
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 15 Feb 2013 02:40:05 +0000 (21:40 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 15 Feb 2013 02:40:05 +0000 (21:40 -0500)
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.

src/tools/pgindent/README

index a89c5c214fb5e7ba7e5b9cec36d54b0733e93ba7..34d59768fdc63e593989f9faee9644f1239e455f 100644 (file)
@@ -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.
 
-4) Download the typedef file from the buildfarm:
-
-       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):
+4) Remove all derived files (pgindent has trouble with one of the flex macros):
 
        gmake maintainer-clean
 
    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:
 
-       pgindent
+       src/tools/pgindent/pgindent
 
 7) Remove any files that generate errors and restore their original
    versions.