Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 01835c4

Browse files
committed
Add comments to pgrminclude.
1 parent 2fa7a04 commit 01835c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/pginclude/pgrminclude

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:
22
# remove extra #include's
33

4-
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.5 2006/07/10 16:45:44 momjian Exp $
4+
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.6 2006/07/11 19:25:41 momjian Exp $
55

66
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
77
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
@@ -39,19 +39,22 @@ do
3939
grep -A1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
4040
egrep -q '^#else|^#endif' && continue
4141

42+
# set up initial file contents
4243
cat /tmp/$$a |
4344
grep -v '^#include[ ]*[<"]'"$INCLUDE"'[>"]' >/tmp/$$b
4445
if [ "$IS_INCLUDE" = "Y" ]
4546
then echo "#include \"postgres.h\"" >/tmp/$$.c
4647
else >/tmp/$$.c
4748
fi
49+
4850
echo "#include \"/tmp/$$b\"" >>/tmp/$$.c
4951
echo "void include_test(void);" >>/tmp/$$.c
5052
echo "void include_test() {" >>/tmp/$$.c
5153
if [ "$IS_INCLUDE" = "Y" ]
5254
then pgdefine "$FILE" >>/tmp/$$.c
5355
fi
5456
echo "}" >>/tmp/$$.c
57+
5558
cc -fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations -I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
5659
if [ "$?" -eq 0 ]
5760
then echo "$FILE $INCLUDE"

0 commit comments

Comments
 (0)