We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0adfa2c commit ddf6518Copy full SHA for ddf6518
src/tools/make_ctags
@@ -2,17 +2,22 @@
2
trap "rm -f /tmp/$$" 0 1 2 3 15
3
rm -f ./tags
4
5
-if ctags --version 2>&1 | grep Exuberant >/dev/null
6
-then FLAGS="--c-types=+dfmstuv"
7
-else FLAGS="-dt"
+cv=`ctags --version 2>&1 | grep Exuberant`
+
+if [ -z "$cv" ]
8
+then FLAGS="-dt"
9
+else FLAGS="--c-types=+dfmstuv"
10
fi
11
12
find `pwd`/ \( -name _deadcode -a -prune \) -o \
13
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
14
-LC_ALL=C
-export LC_ALL
15
-sort tags >/tmp/$$ && mv /tmp/$$ tags
16
+then
17
+ LC_ALL=C
18
+ export LC_ALL
19
+ sort tags >/tmp/$$ && mv /tmp/$$ tags
20
+fi
21
22
find . -name 'CVS' -prune -o -type d -print |while read DIR
23
do
0 commit comments