Skip to content

Commit e708871

Browse files
committed
Change references of CVS to .git.
1 parent f1312b5 commit e708871

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/tools/pginclude/pgcompinclude

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# src/tools/pginclude/pgcompinclude
55

66
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a" 0 1 2 3 15
7-
find . \( -name CVS -a -prune \) -o -name '*.h' -type f -print | while read FILE
7+
find . \( -name .git -a -prune \) -o -name '*.h' -type f -print | while read FILE
88
do
99
sed 's/->[a-zA-Z0-9_\.]*//g' "$FILE" >/tmp/$$a
1010
echo "#include \"postgres.h\"" >/tmp/$$.c
@@ -13,9 +13,11 @@ do
1313
echo "void include_test() {" >>/tmp/$$.c
1414
pgdefine "$FILE" >>/tmp/$$.c
1515
echo "}" >>/tmp/$$.c
16+
# Use -O1 to get warnings only generated by optimization,
17+
# but -O2 is too slow.
1618
cc -fsyntax-only -Werror -Wall -Wmissing-prototypes \
1719
-Wmissing-declarations -I/pg/include -I/pg/backend \
18-
-I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -c /tmp/$$.c \
20+
-I/pg/interfaces/libpq -I`dirname $FILE` $CFLAGS -O1 -c /tmp/$$.c \
1921
-o /tmp/$$.o >/tmp/$$ 2>&1
2022
if [ "$?" -ne 0 ]
2123
then echo "$FILE"

src/tools/pginclude/pgfixinclude

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# src/tools/pginclude/pgfixinclude
44

55
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
6-
find . \( -name CVS -a -prune \) -o -type f -name '*.[chyls]' -print |
6+
find . \( -name .git -a -prune \) -o -type f -name '*.[chyls]' -print |
77
while read FILE
88
do
99
cat "$FILE" | grep "^#include" |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy