Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6d57ed7

Browse files
committed
Have pgrminclude process include files too.
1 parent2226943 commit6d57ed7

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
thenecho "$FILE $INCLUDE"
63-
if [ "$IS_INCLUDE" = "N" ]
64-
thengrep -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
thencat /tmp/$$

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp