mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Add config.h as needed.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
:
|
||||
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
|
||||
find . \( -name CVS -a -prune \) -o -type f -print | grep -v '\./postgres.h' |
|
||||
find . \( -name CVS -a -prune \) -o -type f -print |
|
||||
grep -v '\./postgres.h' |
|
||||
grep -v '\./config.h' |
|
||||
while read FILE
|
||||
do
|
||||
if [ "`echo $FILE | sed -n 's/^.*\.\([^\.]*\)$/\1/p'`" = "h" ]
|
||||
@@ -19,6 +21,7 @@ do
|
||||
do
|
||||
[ -s /usr/include/$INCLUDE ] && continue
|
||||
[ "$INCLUDE" = postgres.h ] && continue
|
||||
[ "$INCLUDE" = config.h ] && continue
|
||||
# preserve configure-specific includes
|
||||
grep -B1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
|
||||
egrep -q '^#if|^#else' && continue
|
||||
|
Reference in New Issue
Block a user