|
1 | 1 | This can format all PostgreSQL *.c and *.h files, but excludes *.y, and *.l
|
2 | 2 | files.
|
3 | 3 |
|
4 |
| -To use it, first getthe list oftypedef's to be included in pgindent by |
| 4 | +1) Getthe list of_current_ typedefs to be included in pgindent by |
5 | 5 | running this on the pgsql/bin and pgsql/lib directories:
|
6 | 6 |
|
7 | 7 | src/tools/find_typedef /usr/local/pgsql/bin /usr/local/pgsql/lib
|
8 | 8 |
|
9 |
| -and update the list in pgindent. This requires the binaries have debug |
10 |
| -symbols. |
| 9 | +and update the list in pgindent. This requires the binaries have |
| 10 | +_debug_symbols. |
11 | 11 |
|
12 |
| -From the top directory, run: |
| 12 | +2)From the top directory, run: |
13 | 13 |
|
14 | 14 | find . -name '*.[ch]' -type f -print |
|
15 | 15 | egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
|
16 | 16 | xargs -n100 pgindent
|
17 | 17 |
|
| 18 | +--------------------------------------------------------------------------- |
| 19 | + |
18 | 20 | We have standardized on NetBSD's indent. We have fixed a few bugs which
|
19 | 21 | requre the NetBSD source to be patched with indent.bsd.patch patch. A
|
20 | 22 | fully patched version is available at ftp://ftp.postgresql.org/pub/dev.
|
|