mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-07-22 13:49:39 +02:00
19 lines
437 B
Bash
Executable File
19 lines
437 B
Bash
Executable File
#!/bin/sh
|
|
trap "rm -f /tmp/$$" 0 1 2 3 15
|
|
rm -f ./tags
|
|
|
|
if ctags --version 2>&1 | grep Exuberant >/dev/null
|
|
then FLAGS="--c-types=+dfmstuv"
|
|
else FLAGS="-dt"
|
|
fi
|
|
|
|
find `pwd`/ \( -name _deadcode -a -prune \) -o \
|
|
-type f -name '*.[chyl]' -print|xargs ctags "$FLAGS" -a -f tags
|
|
|
|
sort tags >/tmp/$$ && mv /tmp/$$ tags
|
|
|
|
find . -name 'CVS' -prune -o -type d -print |while read DIR
|
|
do
|
|
[ "$DIR" != "." ] && ln -f -s `pwd`/tags $DIR/tags
|
|
done
|