#!/bin/sh
-# $PostgreSQL: pgsql/src/tools/make_etags,v 1.4 2009/01/13 19:32:29 petere Exp $
+# src/tools/make_etags
rm -f ./TAGS
-find `pwd`/ -type f -name '*.[chyl]' -print | \
- xargs etags --append -o TAGS
-find . -type d -print | \
-while read DIR; do
- [ "$DIR" != "." ] && ln -f -s `pwd`/TAGS $DIR
+find `pwd`/ -type f -name '*.[chyl]' -print |
+ xargs etags --append -o TAGS
+
+find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -type d -print |
+while read DIR
+do [ "$DIR" != "." ] && ln -f -s `pwd`/TAGS "$DIR"
done