diff options
author | Bruce Momjian <bruce@momjian.us> | 2009-06-10 01:51:44 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2009-06-10 01:51:44 +0000 |
commit | 6c4b3f5f8c8d9b7dc0ac7012b4480b6103e37264 (patch) | |
tree | 05e5ee2ea19bc30081baa982be24fe34e051a150 /src | |
parent | 78f3c3906ed140220a936ff7c854cdfa55234f3f (diff) | |
download | postgresql-6c4b3f5f8c8d9b7dc0ac7012b4480b6103e37264.tar.gz postgresql-6c4b3f5f8c8d9b7dc0ac7012b4480b6103e37264.zip |
Update pgindent instructions.
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/pgindent/README | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/src/tools/pgindent/README b/src/tools/pgindent/README index 1103dd4a66d..72d3df8f391 100644 --- a/src/tools/pgindent/README +++ b/src/tools/pgindent/README @@ -1,4 +1,4 @@ -$PostgreSQL: pgsql/src/tools/pgindent/README,v 1.30 2009/06/10 01:47:59 momjian Exp $ +$PostgreSQL: pgsql/src/tools/pgindent/README,v 1.31 2009/06/10 01:51:44 momjian Exp $ pgindent ======== @@ -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 + |