Skip to content

Commit 6faf495

Browse files
committed
Make 'find' syntax consistent; add .git exclusion to make_ctags.
1 parent c82b63a commit 6faf495

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

src/tools/make_ctags

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# $PostgreSQL: pgsql/src/tools/make_ctags,v 1.11 2006/03/11 04:38:41 momjian Exp $
3+
# $PostgreSQL: pgsql/src/tools/make_ctags,v 1.12 2009/01/14 21:59:19 momjian Exp $
44

55
trap "rm -f /tmp/$$" 0 1 2 3 15
66
rm -f ./tags
@@ -12,8 +12,9 @@ then FLAGS="-dt"
1212
else FLAGS="--c-types=+dfmstuv"
1313
fi
1414

15-
find `pwd`/ \( -name _deadcode -a -prune \) -o \
16-
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
15+
find `pwd`/ \( -name _deadcode -prune \) -o \
16+
-type f -name '*.[chyl]' -print |
17+
xargs ctags "$FLAGS" -a -f tags
1718

1819
if [ -z "$cv" ]
1920
then
@@ -22,7 +23,7 @@ then
2223
sort tags >/tmp/$$ && mv /tmp/$$ tags
2324
fi
2425

25-
find . -name 'CVS' -prune -o -type d -print |while read DIR
26-
do
27-
[ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/tags $DIR/tags
26+
find . \( -name 'CVS' -prune \) -o \( -name .git -prune \) -o -type d -print |
27+
while read DIR
28+
do [ "$DIR" != "." ] && ln -f -s `echo "$DIR" | sed 's;/[^/]*;/..;g'`/tags "$DIR"/tags
2829
done

src/tools/make_etags

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/sh
22

3-
# $PostgreSQL: pgsql/src/tools/make_etags,v 1.5 2009/01/14 21:28:32 petere Exp $
3+
# $PostgreSQL: pgsql/src/tools/make_etags,v 1.6 2009/01/14 21:59:19 momjian Exp $
44

55
rm -f ./TAGS
6-
find `pwd`/ -type f -name '*.[chyl]' -print | \
7-
xargs etags --append -o TAGS
86

9-
find . -type d \( -name CVS -o -name .git -prune -o -print \) | \
10-
while read DIR; do
11-
[ "$DIR" != "." ] && ln -f -s `pwd`/TAGS $DIR
7+
find `pwd`/ -type f -name '*.[chyl]' -print |
8+
xargs etags --append -o TAGS
9+
10+
find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -type d -print |
11+
while read DIR
12+
do [ "$DIR" != "." ] && ln -f -s `pwd`/TAGS "$DIR"
1213
done

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