1997-09-08 06:19:50 +02:00
|
|
|
#!/bin/sh
|
|
|
|
trap "rm -f /tmp/$$" 0 1 2 3 15
|
|
|
|
rm -f ./tags
|
2002-07-02 19:45:52 +02:00
|
|
|
|
2002-07-15 16:45:51 +02:00
|
|
|
if ctags --version 2>&1 | grep Exuberant >/dev/null
|
|
|
|
then FLAGS="--c-types=+dfmstuv"
|
|
|
|
else FLAGS="-dt"
|
2002-07-02 19:45:52 +02:00
|
|
|
fi
|
|
|
|
|
1999-12-13 05:54:01 +01:00
|
|
|
find `pwd`/ \( -name _deadcode -a -prune \) -o \
|
2002-07-02 19:45:52 +02:00
|
|
|
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
|
1999-12-13 05:54:01 +01:00
|
|
|
|
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
|