mirror of
https://github.com/postgres/postgres.git
synced 2025-06-03 01:21:48 +03:00
Allow make_ctags to work with exuberant tags.
This commit is contained in:
parent
a4485ea894
commit
bc3d2e1e35
@ -1,8 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
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`" != "Exuberant" ]
|
||||||
|
then FLAGS="-dt"
|
||||||
|
else FLAGS="--c-types=+dfmstuv"
|
||||||
|
fi
|
||||||
|
|
||||||
find `pwd`/ \( -name _deadcode -a -prune \) -o \
|
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
|
sort tags >/tmp/$$ && mv /tmp/$$ tags
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user