|
1 | 1 | : |
2 | 2 | # report which #include files can not compile on their own |
3 | 3 | # takes -v option to display compile failure message and line numbers |
4 | | -# $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.4 2006/07/1017:11:43 momjian Exp $ |
| 4 | +# $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.5 2006/07/1018:39:32 momjian Exp $ |
5 | 5 |
|
6 | 6 | trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a" 0 1 2 3 15 |
7 | 7 | find . \( -name CVS -a -prune \) -o -name '*.h' -type f -print | while read FILE |
|
13 | 13 | echo "void include_test() {" >>/tmp/$$.c |
14 | 14 | pgdefine "$FILE" >>/tmp/$$.c |
15 | 15 | echo "}" >>/tmp/$$.c |
16 | | -cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations -I/pg/include -I/pg/backend -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1 |
| 16 | +cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations \ |
| 17 | +-I/pg/include -I/pg/backend -I`dirname $FILE` -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1 |
17 | 18 | if [ "$?" -ne 0 ] |
18 | 19 | thenecho "$FILE" |
19 | 20 | if [ "$1" = "-v" ] |
|