diff options
author | Monty <monty@mariadb.org> | 2017-01-27 16:47:00 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2017-01-27 16:47:00 +0200 |
commit | 60c932a3d025d94bd319da4f34e7c498205e4206 (patch) | |
tree | 5175342c67274d7d7e5b3d3d4efd0a807e95c3c0 /support-files | |
parent | 5c9baf54e7af994391aa0510f666b364ff2e657b (diff) | |
download | mariadb-git-60c932a3d025d94bd319da4f34e7c498205e4206.tar.gz |
backported build-tags from 10.2 to ensure that 'make tags' works again
with xemacs
Diffstat (limited to 'support-files')
-rwxr-xr-x | support-files/build-tags | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/support-files/build-tags b/support-files/build-tags index c37485e32f9..03b243ee8cc 100755 --- a/support-files/build-tags +++ b/support-files/build-tags @@ -1,12 +1,16 @@ #! /bin/sh rm -f TAGS -filter='\.cpp$\|\.cc$\|\.c$\|\.h$\|sql_yacc\.yy$\|\.hpp$\|\.ic$' -list="find . -type f" -git rev-parse >/dev/null 2>/dev/null && list="git ls-files" - -$list |grep $filter |while read f; -do - etags -o TAGS --append $f -done +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 |