|
1 | 1 | : |
2 | 2 | # remove extra #include's |
3 | 3 |
|
| 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 | +# |
4 | 9 | # Limitations: 2011-09-24 |
5 | 10 | # |
6 | 11 | # Pgrminclude, when processing header files, can cause includes to be |
@@ -115,8 +120,8 @@ compile_file() { |
115 | 120 |
|
116 | 121 | # Process include files first because they can affect the compilation |
117 | 122 | # 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) | |
120 | 125 | grep -v '/postgres.h$' | |
121 | 126 | grep -v '/postgres_fe.h$' | |
122 | 127 | grep -v '/pg_config.h$' | |
|