Skip to content

Commit 60c932a

Browse files
committed
backported build-tags from 10.2 to ensure that 'make tags' works again
with xemacs
1 parent 5c9baf5 commit 60c932a

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

support-files/build-tags

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#! /bin/sh
22

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

6-
list="find . -type f"
7-
git rev-parse >/dev/null 2>/dev/null && list="git ls-files"
8-
9-
$list |grep $filter |while read f;
10-
do
11-
etags -o TAGS --append $f
12-
done
5+
if git rev-parse HEAD >/dev/null 2>&1
6+
then
7+
cd `git rev-parse --show-toplevel`
8+
echo client storage dbug libmysql sql-common \
9+
sql extra mysys mysys_ssl strings regex pcre vio include \
10+
tools unittest plugin libmysqld | \
11+
xargs -n1 git ls-files | grep -v '\.jar$' | \
12+
xargs etags -o TAGS --append
13+
else
14+
find . -type f ! -name "*.jar" |
15+
xargs etags -o TAGS --append
16+
fi

0 commit comments

Comments
 (0)