postgresql/src/tools/make_ctags

13 lines
328 B
Plaintext
Raw Normal View History

1997-09-08 06:19:50 +02:00
#!/bin/sh
trap "rm -f /tmp/$$" 0 1 2 3 15
rm -f ./tags
find `pwd`/ \( -name _deadcode -a -prune \) -o \
-type f -name '*.[chyl]' -print|xargs ctags -d -t -a -f tags
1997-09-08 06:19:50 +02:00
sort tags >/tmp/$$ && mv /tmp/$$ tags
2000-02-10 19:34:26 +01:00
find . -name 'CVS' -prune -o -type d -print |while read DIR
1997-09-08 06:19:50 +02:00
do
[ "$DIR" != "." ] && ln -f -s `pwd`/tags $DIR/tags
done