Fix to work better with Exuberant's version of ctags.
Gavin Sherry
This commit is contained in:
parent
0adfa2c39d
commit
ddf6518b95
@ -2,17 +2,22 @@
|
|||||||
trap "rm -f /tmp/$$" 0 1 2 3 15
|
trap "rm -f /tmp/$$" 0 1 2 3 15
|
||||||
rm -f ./tags
|
rm -f ./tags
|
||||||
|
|
||||||
if ctags --version 2>&1 | grep Exuberant >/dev/null
|
cv=`ctags --version 2>&1 | grep Exuberant`
|
||||||
then FLAGS="--c-types=+dfmstuv"
|
|
||||||
else FLAGS="-dt"
|
if [ -z "$cv" ]
|
||||||
|
then FLAGS="-dt"
|
||||||
|
else FLAGS="--c-types=+dfmstuv"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
find `pwd`/ \( -name _deadcode -a -prune \) -o \
|
find `pwd`/ \( -name _deadcode -a -prune \) -o \
|
||||||
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
|
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
|
||||||
|
|
||||||
LC_ALL=C
|
if [ -z "$cv" ]
|
||||||
export LC_ALL
|
then
|
||||||
sort tags >/tmp/$$ && mv /tmp/$$ tags
|
LC_ALL=C
|
||||||
|
export LC_ALL
|
||||||
|
sort tags >/tmp/$$ && mv /tmp/$$ tags
|
||||||
|
fi
|
||||||
|
|
||||||
find . -name 'CVS' -prune -o -type d -print |while read DIR
|
find . -name 'CVS' -prune -o -type d -print |while read DIR
|
||||||
do
|
do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user