OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4485ea
)
Allow make_ctags to work with exuberant tags.
author
Bruce Momjian
<bruce@momjian.us>
Tue, 2 Jul 2002 17:45:52 +0000
(17:45 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Tue, 2 Jul 2002 17:45:52 +0000
(17:45 +0000)
src/tools/make_ctags
patch
|
blob
|
history
diff --git
a/src/tools/make_ctags
b/src/tools/make_ctags
index
aa1fb33
..
0999f12
100755
(executable)
--- a/
src/tools/make_ctags
+++ b/
src/tools/make_ctags
@@
-1,8
+1,14
@@
#!/bin/sh
trap "rm -f /tmp/$$" 0 1 2 3 15
rm -f ./tags
+
+if [ "`ctags --version 2>&1 | grep Exuberant`" != "Exuberant" ]
+then FLAGS="-dt"
+else FLAGS="--c-types=+dfmstuv"
+fi
+
find `pwd`/ \( -name _deadcode -a -prune \) -o \
- -type f -name '*.[chyl]' -print|xargs ctags
-d -t
-a -f tags
+ -type f -name '*.[chyl]' -print|xargs ctags
"$FLAGS"
-a -f tags
sort tags >/tmp/$$ && mv /tmp/$$ tags