8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4cef0a commit bbd41aaCopy full SHA for bbd41aa
src/tools/pginclude/pgrminclude
@@ -1,16 +1,16 @@
1
:
2
# remove extra #include's
3
4
-# $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 $
5
6
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
7
-find . \( -name CVS -a -prune \) -o -type f -print |
+find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
8
grep -v '\./postgres.h' |
9
grep -v '\./pg_config.h' |
10
grep -v '\./c.h' |
11
while read FILE
12
do
13
- if [ "`echo $FILE | sed -n 's/^.*\.\([^\.]*\)$/\1/p'`" = "h" ]
+ if [ `expr $FILE : '.*\.h$'` -ne 0 ]
14
then IS_INCLUDE="Y"
15
else IS_INCLUDE="N"
16
fi
0 commit comments