Add another pgdefine path check, and a cvs-git change.

This commit is contained in:
Bruce Momjian 2011-08-26 21:52:35 -04:00
parent e7088713cd
commit 68c019a538
3 changed files with 6 additions and 3 deletions

View File

@ -5,7 +5,7 @@
mkid `find \`pwd\`/ \( -name _deadcode -a -prune \) -o \
-type f -name '*.[chyl]' -print|sed 's;//;/;g'`
find . -name 'CVS' -prune -o -type d -print |while read DIR
find . \( -name .git -a -prune \) -o -type d -print |while read DIR
do
[ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/ID $DIR/ID
done

View File

@ -3,6 +3,11 @@
# takes -v option to display compile failure message and line numbers
# src/tools/pginclude/pgcompinclude
if ! pgdefine
then echo "pgdefine must be in your PATH" 1>&2
exit 1
fi
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a" 0 1 2 3 15
find . \( -name .git -a -prune \) -o -name '*.h' -type f -print | while read FILE
do

View File

@ -6,8 +6,6 @@ then echo "pgdefine must be in your PATH" 1>&2
exit 1
fi
# src/tools/pginclude/pgrminclude
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
# do include files first
(find . \( -name .git -a -prune \) -o -type f -name '*.h' -print;