summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2009-06-10 01:51:44 +0000
committerBruce Momjian2009-06-10 01:51:44 +0000
commitf5adddf4d8db0fd6fbdeb3a055f882e126f13be2 (patch)
treee76e5456afcf135cb2017e3edbb85e46a5fb53f7
parenteb518e81ff7ffbab64973f051d18d636939690fe (diff)
Update pgindent instructions.
-rw-r--r--src/tools/pgindent/README42
1 files changed, 22 insertions, 20 deletions
diff --git a/src/tools/pgindent/README b/src/tools/pgindent/README
index ca670509a9..5ac230b730 100644
--- a/src/tools/pgindent/README
+++ b/src/tools/pgindent/README
@@ -8,31 +8,15 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
http://www.pgbuildfarm.org/cgi-bin/typedefs.pl
----------------------------------------------------------------------------
-
-Obsolete typedef list creation instructions:
---------------------------------------------
-
-To use pgindent:
-
-1) Build the source tree with _debug_ symbols and all possible configure options
-
-2) Install to /usr/local/pgsql
-
-3) Install all contrib modules
-
-4) Save a list of typedefs by running:
-
- src/tools/find_typedef /usr/local/pgsql/bin /usr/local/pgsql/lib > /tmp/pgtypedefs
-
-5) Run 'gmake distclean' from the top of the source tree to remove any
+1) Run 'gmake distclean' from the top of the source tree to remove any
derived C files.
-6) From the top of the source tree, run:
+2) From the top of the source tree, run:
find . -name '*.[ch]' -type f -print |
egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
- xargs -n100 pgindent /tmp/pgtypedefs
+ xargs -n100 pgindent /tmp/typedefs.pl
+
---------------------------------------------------------------------------
@@ -57,3 +41,21 @@ regression tests.
src/include/snowball/libstemmer/ and src/backend/snowball/libstemmer/
are excluded because those files are imported from an external project,
not maintained locally, and are machine-generated anyway.
+
+---------------------------------------------------------------------------
+
+Obsolete typedef list creation instructions:
+--------------------------------------------
+
+To use pgindent:
+
+1) Build the source tree with _debug_ symbols and all possible configure options
+
+2) Install to /usr/local/pgsql
+
+3) Install all contrib modules
+
+4) Save a list of typedefs by running:
+
+ src/tools/find_typedef /usr/local/pgsql/bin /usr/local/pgsql/lib > /tmp/pgtypedefs
+