summaryrefslogtreecommitdiff
path: root/support-files/build-tags
blob: 8e8ed251cd79cf6c5867827cae66c20e44f2476c (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 sql mysys strings client storage dbug libmysql sql-common \
       extra mysys_ssl strings regex pcre vio include \
       tools unittest plugin libmysqld | \
       xargs -n1 git ls-files | grep -v '\.jar$' | grep -v '\xz$' |
       xargs etags -o TAGS --append
else
  find . -type f ! -name "*.jar" |
       xargs etags -o TAGS --append
fi