mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Avoid version-control system directories when creating TAGS. Besides
being wasteful, this can collide with repostory metadata on case-insensitive file sytems.
This commit is contained in:
parent
1327a0bc06
commit
c82b63a54f
@ -1,12 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# $PostgreSQL: pgsql/src/tools/make_etags,v 1.4 2009/01/13 19:32:29 petere Exp $
|
# $PostgreSQL: pgsql/src/tools/make_etags,v 1.5 2009/01/14 21:28:32 petere Exp $
|
||||||
|
|
||||||
rm -f ./TAGS
|
rm -f ./TAGS
|
||||||
find `pwd`/ -type f -name '*.[chyl]' -print | \
|
find `pwd`/ -type f -name '*.[chyl]' -print | \
|
||||||
xargs etags --append -o TAGS
|
xargs etags --append -o TAGS
|
||||||
|
|
||||||
find . -type d -print | \
|
find . -type d \( -name CVS -o -name .git -prune -o -print \) | \
|
||||||
while read DIR; do
|
while read DIR; do
|
||||||
[ "$DIR" != "." ] && ln -f -s `pwd`/TAGS $DIR
|
[ "$DIR" != "." ] && ln -f -s `pwd`/TAGS $DIR
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user