Skip to content

Commit c6e9da1

Browse files
committed
Cleanup of script.
1 parent f261deb commit c6e9da1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/tools/pginclude/pgrminclude

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,7 @@ do
5151
cat "$FILE" |
5252
grep -v "^#if" |
5353
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-
else cat
60-
fi >/tmp/$$a
54+
grep -v "^#endif" >/tmp/$$a
6155

6256
# set up initial file contents
6357
grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' \
@@ -78,7 +72,7 @@ do
7872

7973
cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
8074
-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 \
8276
-o /tmp/$$.o >/tmp/$$ 2>&1
8377
if [ "$?" -eq 0 ]
8478
then echo "$FILE $INCLUDE"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy