head	1.6;
access;
symbols
	REL7_0_PATCHES:1.3.0.2
	REL7_0:1.3;
locks; strict;
comment	@# @;


1.6
date	2000.06.14.22.33.06;	author momjian;	state dead;
branches;
next	1.5;

1.5
date	2000.06.14.22.28.16;	author momjian;	state Exp;
branches;
next	1.4;

1.4
date	2000.05.29.17.40.45;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	99.07.15.19.21.42;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	99.07.15.16.55.32;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	99.07.15.15.21.51;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Update include cleaning scripts.
@
text
@:
# report which #include files can not compile on their own
# takes -v option to display compile failure message and line numbers

trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a" 0 1 2 3 15
find . \( -name CVS -a -prune \) -o -name '*.[ch]' -type f -print | while read FILE
do
	sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
	echo "#include \"postgres.h\"" >/tmp/$$.c
	echo "#include \"/tmp/$$a\"" >>/tmp/$$.c
	echo "void include_test(void);" >>/tmp/$$.c
	echo "void include_test() {" >>/tmp/$$.c
	pgdefine "$FILE" >>/tmp/$$.c
	echo "}" >>/tmp/$$.c
	cc -fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations -I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
	if [ "$?" -ne 0 ]
	then	echo "$FILE"
		if [ "$1" = "-v" ]
		then	cat /tmp/$$
			nl /tmp/$$.c
			echo
		fi
	fi
done
@


1.5
log
@Update include scripts
@
text
@@


1.4
log
@Split vacuum and analyze into separate files
@
text
@d2 2
a3 1
# report which include files can not compile on their own
@


1.3
log
@Remove un-needed #include's from *.c files.
@
text
@d2 2
@


1.2
log
@Add updates.
@
text
@d8 1
d12 1
a12 1
	cc -Werror -Wall -I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
@


1.1
log
@Clean up #include in /include directory.  Add scripts for checking includes.
@
text
@d8 1
a8 1
	echo "void main() {" >>/tmp/$$.c
@

