Skip to content

Commit

Permalink
backported build-tags from 10.2 to ensure that 'make tags' works again
Browse files Browse the repository at this point in the history
with xemacs
  • Loading branch information
montywi committed Jan 27, 2017
1 parent 5c9baf5 commit 60c932a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions support-files/build-tags
@@ -1,12 +1,16 @@
#! /bin/sh #! /bin/sh


rm -f TAGS rm -f TAGS
filter='\.cpp$\|\.cc$\|\.c$\|\.h$\|sql_yacc\.yy$\|\.hpp$\|\.ic$'


list="find . -type f" if git rev-parse HEAD >/dev/null 2>&1
git rev-parse >/dev/null 2>/dev/null && list="git ls-files" then

cd `git rev-parse --show-toplevel`
$list |grep $filter |while read f; echo client storage dbug libmysql sql-common \
do sql extra mysys mysys_ssl strings regex pcre vio include \
etags -o TAGS --append $f tools unittest plugin libmysqld | \
done 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

0 comments on commit 60c932a

Please sign in to comment.