Bug#20009543 SUPPORT-FILES/BUILD-TAGS TRANSITION TO GIT

Use 'git ls-files' to find source files for etags.
This commit is contained in:
Tor Didriksen 2014-11-12 11:11:10 +01:00
parent 2ee7167bbd
commit dd4f852953

View File

@ -1,10 +1,10 @@
#! /bin/sh #! /bin/sh
rm -f TAGS rm -f TAGS
filter='\.cc$\|\.c$\|\.h$\|sql_yacc\.yy$' filter='\.cpp$\|\.cc$\|\.c$\|\.h$\|sql_yacc\.yy$\|\.hpp$\|\.ic$'
list="find . -type f" list="find . -type f"
bzr root >/dev/null 2>/dev/null && list="bzr ls --from-root -R --kind=file --versioned" git rev-parse >/dev/null 2>/dev/null && list="git ls-files"
$list |grep $filter |while read f; $list |grep $filter |while read f;
do do