File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
:
2
2
# remove extra #include's
3
3
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 $
5
5
6
6
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
7
7
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
60
60
-c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
61
61
if [ "$?" -eq 0 ]
62
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
63
+ grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" >/tmp/$$b
64
+ mv /tmp/$$b "$FILE"
67
65
fi
68
66
if [ "$1" = "-v" ]
69
67
then cat /tmp/$$
You can’t perform that action at this time.
0 commit comments