Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitddf6518

Browse files
committed
Fix to work better with Exuberant's version of ctags.
Gavin Sherry
1 parent0adfa2c commitddf6518

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 --version2>&1| grep Exuberant>/dev/null
6-
thenFLAGS="--c-types=+dfmstuv"
7-
elseFLAGS="-dt"
5+
cv=`ctags --version2>&1| grep Exuberant`
6+
7+
if [-z"$cv" ]
8+
thenFLAGS="-dt"
9+
elseFLAGS="--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|whileread DIR
1823
do

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp