File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 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 get the list of typedef's to be included in pgindent by
4
+ 1) Get the 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.
You can’t perform that action at this time.
0 commit comments