mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 11:51:23 +02:00
Have pgrminclude process include files too.
This commit is contained in:
parent
22269434a6
commit
6d57ed7797
@ -1,7 +1,7 @@
|
|||||||
:
|
:
|
||||||
# remove extra #include's
|
# remove extra #include's
|
||||||
|
|
||||||
# $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 $
|
||||||
|
|
||||||
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
|
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
|
||||||
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
|
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
|
||||||
@ -60,11 +60,9 @@ do
|
|||||||
-c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
|
-c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
|
||||||
if [ "$?" -eq 0 ]
|
if [ "$?" -eq 0 ]
|
||||||
then echo "$FILE $INCLUDE"
|
then echo "$FILE $INCLUDE"
|
||||||
if [ "$IS_INCLUDE" = "N" ]
|
grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" >/tmp/$$b
|
||||||
then grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" >/tmp/$$b
|
|
||||||
mv /tmp/$$b "$FILE"
|
mv /tmp/$$b "$FILE"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
if [ "$1" = "-v" ]
|
if [ "$1" = "-v" ]
|
||||||
then cat /tmp/$$
|
then cat /tmp/$$
|
||||||
cat /tmp/$$.c
|
cat /tmp/$$.c
|
||||||
|
Loading…
Reference in New Issue
Block a user