We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2226943 commit 6d57ed7Copy full SHA for 6d57ed7
src/tools/pginclude/pgrminclude
@@ -1,7 +1,7 @@
1
:
2
# remove extra #include's
3
4
-# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.9 2006/07/11 19:34:34 momjian Exp $
+# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.10 2006/07/11 19:45:16 momjian Exp $
5
6
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
7
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
@@ -60,10 +60,8 @@ do
60
-c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
61
if [ "$?" -eq 0 ]
62
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
+ grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" >/tmp/$$b
+ mv /tmp/$$b "$FILE"
67
fi
68
if [ "$1" = "-v" ]
69
then cat /tmp/$$
0 commit comments