File tree 4 files changed +19
-2048
lines changed
4 files changed +19
-2048
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- # $PostgreSQL: pgsql/src/tools/find_typedef,v 1.6 2006/03/11 04:38:41 momjian Exp $
3
+ # $PostgreSQL: pgsql/src/tools/find_typedef,v 1.7 2007/12/21 14:20:36 momjian Exp $
4
4
5
5
# This script attempts to find all typedef's in the postgres binaries
6
6
# by using 'nm' to report all typedef debugging symbols.
33
33
uniq |
34
34
# these are used both for typedefs and variable names
35
35
# so do not include them
36
- egrep -v ' ^(date|interval|timestamp|ANY)$' |
37
- sed ' s/\(.*\)/-T\1 \\/'
36
+ egrep -v ' ^(date|interval|timestamp|ANY)$'
Original file line number Diff line number Diff line change @@ -7,22 +7,20 @@ To use pgindent:
7
7
8
8
2) Install to /usr/local/pgsql
9
9
10
- 3) Install all /contrib libraries
10
+ 3) Install all /contrib modules
11
11
12
- 4) Get the list of _current_ typedefs by running:
12
+ 4) Save a list of typedefs by running:
13
13
14
- src/tools/find_typedef /usr/local/pgsql/bin /usr/local/pgsql/lib
14
+ src/tools/find_typedef /usr/local/pgsql/bin /usr/local/pgsql/lib > /tmp/pgtypedefs
15
15
16
- 5) Add the typedef output to the pgindent script.
17
-
18
- 6) Run 'gmake distclean' from the top of the source tree to remove any
16
+ 5) Run 'gmake distclean' from the top of the source tree to remove any
19
17
derived C files.
20
18
21
- 7 ) From the top of the source tree, run:
19
+ 6 ) From the top of the source tree, run:
22
20
23
21
find . -name '*.[ch]' -type f -print |
24
22
egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
25
- xargs -n100 pgindent
23
+ xargs -n100 pgindent /tmp/pgtypedefs
26
24
27
25
---------------------------------------------------------------------------
28
26
You can’t perform that action at this time.
0 commit comments