Content-Length: 278560 | pFad | http://github.com/postgrespro/postgres/commit/2594ad74360c647edfd0645c4097d78ff83b4c3b

03 In pgrminclude, document requirement to use pgcompinclude, and sort · postgrespro/postgres@2594ad7 · GitHub
Skip to content

Commit 2594ad7

Browse files
committed
In pgrminclude, document requirement to use pgcompinclude, and sort
files so include removal is more predictable.
1 parent 23fe7a7 commit 2594ad7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/tools/pginclude/pgrminclude

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
:
22
# remove extra #include's
33

4+
# pgcompinclude must be run before and after pgrminclude. It must be
5+
# run before because we don't want include dependencies to leak into
6+
# the C program files, and after because removal of includes from headers
7+
# can cause new include unfulfilled dependencies.
8+
#
49
# Limitations: 2011-09-24
510
#
611
# Pgrminclude, when processing header files, can cause includes to be
@@ -115,8 +120,8 @@ compile_file() {
115120

116121
# Process include files first because they can affect the compilation
117122
# of *.c files.
118-
(find . \( -name .git -a -prune \) -o -type f -name '*.h' -print;
119-
find . \( -name .git -a -prune \) -o -type f -name '*.c' -print ) |
123+
(find . \( -name .git -a -prune \) -o -type f -name '*.h' -print | sort;
124+
find . \( -name .git -a -prune \) -o -type f -name '*.c' -print | sort) |
120125
grep -v '/postgres.h$' |
121126
grep -v '/postgres_fe.h$' |
122127
grep -v '/pg_config.h$' |

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2594ad74360c647edfd0645c4097d78ff83b4c3b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy