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 f73334ae93b4dd7908872169a15669caaf190756..48a36cc330ccc4584d9d898297c1a4f8a3dc54d7 100755 (executable)
@@ -6,7 +6,7 @@ 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