]> granicus.if.org Git - postgresql/blobdiff - src/tools/make_etags
pgbench: Attempt fix build on Windows
[postgresql] / src / tools / make_etags
index f2db9f1758931391873fe16bacd0309494a364b2..3ce96bc3cabf626f3ed944f3c71bf2ef5d8ee193 100755 (executable)
@@ -1,13 +1,13 @@
 #!/bin/sh
 
-# $PostgreSQL: pgsql/src/tools/make_etags,v 1.3 2006/03/11 04:38:41 momjian Exp $
+# src/tools/make_etags
 
-trap "rm -f /tmp/$$" 0 1 2 3 15
 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