Bug#37201: make tags doesn't work in bazaar server trees
Fall back to "find" if bzr is unavailable. Don't fail for paths that have spaces in them.
This commit is contained in:
parent
15beb38f9f
commit
b94519a154
@ -2,8 +2,11 @@
|
|||||||
|
|
||||||
rm -f TAGS
|
rm -f TAGS
|
||||||
filter='\.cc$\|\.c$\|\.h$\|\.yy$'
|
filter='\.cc$\|\.c$\|\.h$\|\.yy$'
|
||||||
files=`bzr ls --kind=file | grep $filter `
|
|
||||||
for f in $files ;
|
list="find . -type f"
|
||||||
|
bzr root >/dev/null 2>/dev/null && list="bzr ls --kind=file --versioned"
|
||||||
|
|
||||||
|
$list |grep $filter |while read f;
|
||||||
do
|
do
|
||||||
etags -o TAGS --append $f
|
etags -o TAGS --append $f
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user