]> granicus.if.org Git - postgresql/blob - src/tools/make_etags
Avoid version-control system directories when creating TAGS. Besides
[postgresql] / src / tools / make_etags
1 #!/bin/sh
2
3 # $PostgreSQL: pgsql/src/tools/make_etags,v 1.5 2009/01/14 21:28:32 petere Exp $
4
5 rm -f ./TAGS
6 find `pwd`/ -type f -name '*.[chyl]' -print | \
7   xargs etags --append -o TAGS
8
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
12 done