]> granicus.if.org Git - postgresql/blobdiff - src/tools/make_etags
pgbench: Attempt fix build on Windows
[postgresql] / src / tools / make_etags
index 94b9597aa401be529e3572206053d46d317aa225..3ce96bc3cabf626f3ed944f3c71bf2ef5d8ee193 100755 (executable)
@@ -1,10 +1,13 @@
 #!/bin/sh
-trap "rm -f /tmp/$$" 0 1 2 3 15
+
+# src/tools/make_etags
+
 rm -f ./TAGS
-find `pwd`/ -type f -name '*.[chyl]' -print | \
-  xargs etags --append --output=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