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

Commit 6d57ed7

Browse files
committed
Have pgrminclude process include files too.
1 parent 2226943 commit 6d57ed7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/tools/pginclude/pgrminclude

Lines changed: 3 additions & 5 deletions
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.9 2006/07/11 19:34:34 momjian Exp $
4+
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.10 2006/07/11 19:45:16 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 |
@@ -60,10 +60,8 @@ do
6060
-c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
6161
if [ "$?" -eq 0 ]
6262
then echo "$FILE $INCLUDE"
63-
if [ "$IS_INCLUDE" = "N" ]
64-
then grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" >/tmp/$$b
65-
mv /tmp/$$b "$FILE"
66-
fi
63+
grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" >/tmp/$$b
64+
mv /tmp/$$b "$FILE"
6765
fi
6866
if [ "$1" = "-v" ]
6967
then cat /tmp/$$

0 commit comments

Comments
 (0)