Skip to content

Commit bc3d2e1

Browse files
committed
Allow make_ctags to work with exuberant tags.
1 parent a4485ea commit bc3d2e1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/tools/make_ctags

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#!/bin/sh
22
trap "rm -f /tmp/$$" 0 1 2 3 15
33
rm -f ./tags
4+
5+
if [ "`ctags --version 2>&1 | grep Exuberant`" != "Exuberant" ]
6+
then FLAGS="-dt"
7+
else FLAGS="--c-types=+dfmstuv"
8+
fi
9+
410
find `pwd`/ \( -name _deadcode -a -prune \) -o \
5-
-type f -name '*.[chyl]' -print|xargs ctags -d -t -a -f tags
11+
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
612

713
sort tags >/tmp/$$ && mv /tmp/$$ tags
814

0 commit comments

Comments
 (0)