]> granicus.if.org Git - postgresql/commitdiff
Create TAGS file for emacs. Like MAKE_CTAGS for vi.
authorBryan Henderson <bryanh@giraffe.netgate.net>
Sun, 3 Nov 1996 09:03:30 +0000 (09:03 +0000)
committerBryan Henderson <bryanh@giraffe.netgate.net>
Sun, 3 Nov 1996 09:03:30 +0000 (09:03 +0000)
src/MAKE_ETAGS [new file with mode: 0644]

diff --git a/src/MAKE_ETAGS b/src/MAKE_ETAGS
new file mode 100644 (file)
index 0000000..94b9597
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+trap "rm -f /tmp/$$" 0 1 2 3 15
+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
+done