Move pgrminclude debug code to be more effective.
This commit is contained in:
parent
108fe524a9
commit
1ddbfa16a8
@ -1,7 +1,7 @@
|
|||||||
:
|
:
|
||||||
# remove extra #include's
|
# remove extra #include's
|
||||||
|
|
||||||
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.7 2006/07/11 19:30:05 momjian Exp $
|
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.8 2006/07/11 19:31:29 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 |
|
||||||
@ -64,10 +64,10 @@ do
|
|||||||
then 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
|
||||||
if [ "$1" = "-v" ]
|
fi
|
||||||
then cat /tmp/$$
|
if [ "$1" = "-v" ]
|
||||||
cat /tmp/$$.c
|
then cat /tmp/$$
|
||||||
fi
|
cat /tmp/$$.c
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user