Cleanup of script.
This commit is contained in:
parent
f261deb4b4
commit
c6e9da17a1
|
@ -51,13 +51,7 @@ do
|
||||||
cat "$FILE" |
|
cat "$FILE" |
|
||||||
grep -v "^#if" |
|
grep -v "^#if" |
|
||||||
grep -v "^#else" |
|
grep -v "^#else" |
|
||||||
grep -v "^#endif" |
|
grep -v "^#endif" >/tmp/$$a
|
||||||
if [ "$IS_INCLUDE" = "Y" ]
|
|
||||||
then # remove struct references
|
|
||||||
# sed 's/->[a-zA-Z0-9_\.]*//g'
|
|
||||||
cat
|
|
||||||
else cat
|
|
||||||
fi >/tmp/$$a
|
|
||||||
|
|
||||||
# set up initial file contents
|
# set up initial file contents
|
||||||
grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' \
|
grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' \
|
||||||
|
@ -78,7 +72,7 @@ do
|
||||||
|
|
||||||
cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
|
cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
|
||||||
-Wmissing-declarations -I/pg/include -I/pg/backend \
|
-Wmissing-declarations -I/pg/include -I/pg/backend \
|
||||||
-I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -c /tmp/$$.c \
|
-I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -O1 -c /tmp/$$.c \
|
||||||
-o /tmp/$$.o >/tmp/$$ 2>&1
|
-o /tmp/$$.o >/tmp/$$ 2>&1
|
||||||
if [ "$?" -eq 0 ]
|
if [ "$?" -eq 0 ]
|
||||||
then echo "$FILE $INCLUDE"
|
then echo "$FILE $INCLUDE"
|
||||||
|
|
Loading…
Reference in New Issue