Add another pgdefine path check, and a cvs-git change.
authorBruce Momjian <bruce@momjian.us>
Sat, 27 Aug 2011 01:52:35 +0000 (21:52 -0400)
committerBruce Momjian <bruce@momjian.us>
Sat, 27 Aug 2011 01:52:35 +0000 (21:52 -0400)
src/tools/make_mkid
src/tools/pginclude/pgcompinclude
src/tools/pginclude/pgrminclude

index 0c3414073b4c318b83980ec2f6c6ca73db59d18f..6f160614cdc79b61c8a35bbc1d30ed02a1c6a424 100755 (executable)
@@ -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
index e2505e685ae885135676e5caf459f1b58df699e0..fdbf58e16a760b04c312c0dbe181cabdda9c157d 100755 (executable)
@@ -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
index aef57060c0eda561148bd97a60c12a46795bffdd..64d7ef719987d0389f4651a5489263201c4ec8f7 100755 (executable)
@@ -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;