Skip to content

Commit 799c0d3

Browse files
committed
Use a file of patterns of filenames to exclude from pgindent runs, instead if using multiple invocations of egrep. Add perl ppport.h to the current list.
1 parent 399ea9e commit 799c0d3

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/tools/pgindent/README

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$PostgreSQL: pgsql/src/tools/pgindent/README,v 1.39 2010/02/26 18:00:15 momjian Exp $
1+
$PostgreSQL: pgsql/src/tools/pgindent/README,v 1.40 2010/04/01 14:44:39 adunstan Exp $
22

33
pgindent
44
========
@@ -8,7 +8,7 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
88

99
1) Change directory to the top of the build tree.
1010

11-
2) Download the typedef file from the builfarm:
11+
2) Download the typedef file from the buildfarm:
1212

1313
wget -O src/tools/pgindent/typedefs.list http://www.pgbuildfarm.org/cgi-bin/typedefs.pl
1414

@@ -18,10 +18,8 @@ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and
1818

1919
4) Run pgindent:
2020

21-
find . -name '*.[ch]' -type f -print |
22-
egrep -v '/s_lock.h|/ecpg/test/expected/|/snowball/libstemmer/' |
23-
egrep -v '/ecpg/include/(sqlda|sqltypes)\.h$' |
24-
egrep -v '/ecpg/include/preproc/struct\.h$' |
21+
find . -name '*.[ch]' -type f -print | \
22+
egrep -v -f src/tools/pgindent/exclude_file_patterns | \
2523
xargs -n100 pgindent src/tools/pgindent/typedefs.list
2624

2725
5) Remove any files that generate errors.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#list of file patterns to exclude from pg_indent runs
2+
/s_lock\.h$
3+
/ecpg/test/expected/
4+
/snowball/libstemmer/
5+
/ecpg/include/(sqlda|sqltypes)\.h$
6+
/ecpg/include/preproc/struct\.h$
7+
/pl/plperl/ppport\.h$

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