mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
More cleanup
This commit is contained in:
@@ -20,8 +20,10 @@ do
|
||||
[ -s /usr/include/$INCLUDE ] && continue
|
||||
[ "$INCLUDE" = postgres.h ] && continue
|
||||
# preserve configure-specific includes
|
||||
grep -B1 -A1 -q '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' |
|
||||
egrep -q '^#if|^#else|^#endif' && continue
|
||||
grep -B1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
|
||||
egrep -q '^#if|^#else' && continue
|
||||
grep -A1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
|
||||
egrep -q '^#else|^#endif' && continue
|
||||
cat /tmp/$$a |
|
||||
grep -v '^#include[ ]*[<"]'"$INCLUDE"'[>"]' >/tmp/$$b
|
||||
if [ "$IS_INCLUDE" = "Y" ]
|
||||
|
Reference in New Issue
Block a user