mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Update pgindent instructions.
This commit is contained in:
@ -1,26 +1,26 @@
|
|||||||
$PostgreSQL: pgsql/src/tools/pgindent/README,v 1.32 2010/02/26 01:40:15 momjian Exp $
|
$PostgreSQL: pgsql/src/tools/pgindent/README,v 1.33 2010/02/26 02:11:52 momjian Exp $
|
||||||
|
|
||||||
pgindent
|
pgindent
|
||||||
========
|
========
|
||||||
|
|
||||||
This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
|
This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
|
||||||
*.l files. For source code typedefs, download:
|
*.l files.
|
||||||
|
|
||||||
|
1) Download the typedef file from the builfarm:
|
||||||
|
|
||||||
http://www.pgbuildfarm.org/cgi-bin/typedefs.pl
|
http://www.pgbuildfarm.org/cgi-bin/typedefs.pl
|
||||||
|
|
||||||
1) Run 'gmake distclean' from the top of the source tree to remove any
|
2) Download a fresh CVS checkout
|
||||||
derived C files.
|
|
||||||
|
|
||||||
2) From the top of the source tree, run:
|
3) From the top of the source tree, run:
|
||||||
|
|
||||||
find . -name '*.[ch]' -type f -print |
|
find . -name '*.[ch]' -type f -print |
|
||||||
egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
|
egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
|
||||||
xargs -n100 pgindent /tmp/typedefs.pl
|
xargs -n100 pgindent /tmp/typedefs.pl
|
||||||
|
|
||||||
3) pgindent cannot process the YY_INPUT macro generated by flex, so remove
|
4) Remove any files that generate errors.
|
||||||
the generate C files so they are rebuilt:
|
|
||||||
|
|
||||||
rm -f $(find . -type f -name '*.l' -print | sed 's/l$/c/')
|
5) Do a full test build.
|
||||||
|
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user