Skip to content
Snippets Groups Projects
Commit bbd41aac authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Improve tool coding.

parent d4cef0aa
No related branches found
No related tags found
No related merge requests found
: :
# remove extra #include's # remove extra #include's
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.4 2006/03/11 04:38:42 momjian Exp $ # $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.5 2006/07/10 16:45:44 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 -print | find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
grep -v '\./postgres.h' | grep -v '\./postgres.h' |
grep -v '\./pg_config.h' | grep -v '\./pg_config.h' |
grep -v '\./c.h' | grep -v '\./c.h' |
while read FILE while read FILE
do do
if [ "`echo $FILE | sed -n 's/^.*\.\([^\.]*\)$/\1/p'`" = "h" ] if [ `expr $FILE : '.*\.h$'` -ne 0 ]
then IS_INCLUDE="Y" then IS_INCLUDE="Y"
else IS_INCLUDE="N" else IS_INCLUDE="N"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment