Skip to content

Commit ddf6518

Browse files
committed
Fix to work better with Exuberant's version of ctags.
Gavin Sherry
1 parent 0adfa2c commit ddf6518

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/tools/make_ctags

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,22 @@
22
trap "rm -f /tmp/$$" 0 1 2 3 15
33
rm -f ./tags
44

5-
if ctags --version 2>&1 | grep Exuberant >/dev/null
6-
then FLAGS="--c-types=+dfmstuv"
7-
else FLAGS="-dt"
5+
cv=`ctags --version 2>&1 | grep Exuberant`
6+
7+
if [ -z "$cv" ]
8+
then FLAGS="-dt"
9+
else FLAGS="--c-types=+dfmstuv"
810
fi
911

1012
find `pwd`/ \( -name _deadcode -a -prune \) -o \
1113
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
1214

13-
LC_ALL=C
14-
export LC_ALL
15-
sort tags >/tmp/$$ && mv /tmp/$$ tags
15+
if [ -z "$cv" ]
16+
then
17+
LC_ALL=C
18+
export LC_ALL
19+
sort tags >/tmp/$$ && mv /tmp/$$ tags
20+
fi
1621

1722
find . -name 'CVS' -prune -o -type d -print |while read DIR
1823
do

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy