Skip to content

Commit 7b009a2

Browse files
committed
Modify pgindent to use an external typedefs file rather than included
list. Remove pgjindent.
1 parent 3f7f9f5 commit 7b009a2

File tree

4 files changed

+19
-2048
lines changed

4 files changed

+19
-2048
lines changed

src/tools/find_typedef

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

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 $
44

55
# This script attempts to find all typedef's in the postgres binaries
66
# by using 'nm' to report all typedef debugging symbols.
@@ -33,5 +33,4 @@ sort |
3333
uniq |
3434
# these are used both for typedefs and variable names
3535
# so do not include them
36-
egrep -v '^(date|interval|timestamp|ANY)$' |
37-
sed 's/\(.*\)/-T\1 \\/'
36+
egrep -v '^(date|interval|timestamp|ANY)$'

src/tools/pgindent/README

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,20 @@ To use pgindent:
77

88
2) Install to /usr/local/pgsql
99

10-
3) Install all /contrib libraries
10+
3) Install all /contrib modules
1111

12-
4) Get the list of _current_ typedefs by running:
12+
4) Save a list of typedefs by running:
1313

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
1515

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
1917
derived C files.
2018

21-
7) From the top of the source tree, run:
19+
6) From the top of the source tree, run:
2220

2321
find . -name '*.[ch]' -type f -print |
2422
egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
25-
xargs -n100 pgindent
23+
xargs -n100 pgindent /tmp/pgtypedefs
2624

2725
---------------------------------------------------------------------------
2826

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy