]> granicus.if.org Git - postgresql/commitdiff
Avoid version-control system directories when creating TAGS. Besides
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 14 Jan 2009 21:28:32 +0000 (21:28 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 14 Jan 2009 21:28:32 +0000 (21:28 +0000)
being wasteful, this can collide with repostory metadata on case-insensitive
file sytems.

src/tools/make_etags

index 94cfebc459f2dab2362333d76a0bbd4da83ef7f8..612c97f1e94603d2f458601a7d7f230f78bdcca6 100755 (executable)
@@ -1,12 +1,12 @@
 #!/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
 find `pwd`/ -type f -name '*.[chyl]' -print | \
   xargs etags --append -o TAGS
 
-find . -type d -print | \
+find . -type d \( -name CVS -o -name .git -prune -o -print \) | \
 while read DIR; do
   [ "$DIR" != "." ] && ln -f -s `pwd`/TAGS $DIR
 done