Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit799c0d3

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 parent399ea9e commit799c0d3

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 thebuilfarm:
11+
2) Download the typedef file from thebuildfarm:
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)

[8]ページ先頭

©2009-2025 Movatter.jp