summaryrefslogtreecommitdiff
path: root/support-files/build-tags
blob: 03b243ee8cc6ee50364f5152002259b8c2836849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh

rm -f TAGS

if git rev-parse HEAD >/dev/null 2>&1
then
  cd `git rev-parse --show-toplevel`
  echo client storage dbug libmysql sql-common \
       sql extra mysys mysys_ssl strings regex pcre vio include \
       tools unittest plugin libmysqld | \
       xargs -n1 git ls-files | grep -v '\.jar$' | \
       xargs etags -o TAGS --append
else
  find . -type f ! -name "*.jar" |
       xargs etags -o TAGS --append
fi