|
51 | 51 | cat "$FILE" |
|
52 | 52 | grep -v "^#if" |
|
53 | 53 | grep -v "^#else" |
|
54 |
| -grep -v "^#endif" | |
55 |
| -if [ "$IS_INCLUDE" = "Y" ] |
56 |
| -then# remove struct references |
57 |
| -#sed 's/->[a-zA-Z0-9_\.]*//g' |
58 |
| -cat |
59 |
| -elsecat |
60 |
| -fi >/tmp/$$a |
| 54 | +grep -v "^#endif" >/tmp/$$a |
61 | 55 |
|
62 | 56 | # set up initial file contents
|
63 | 57 | grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' \
|
|
78 | 72 |
|
79 | 73 | cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
|
80 | 74 | -Wmissing-declarations -I/pg/include -I/pg/backend \
|
81 |
| --I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -c /tmp/$$.c \ |
| 75 | +-I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -O1 -c /tmp/$$.c \ |
82 | 76 | -o /tmp/$$.o >/tmp/$$ 2>&1
|
83 | 77 | if [ "$?" -eq 0 ]
|
84 | 78 | thenecho "$FILE $INCLUDE"
|
|