From b94519a154f9511b11f475a3b62ebb377b0e3c83 Mon Sep 17 00:00:00 2001 From: Chad MILLER Date: Wed, 6 Aug 2008 16:25:25 -0400 Subject: [PATCH] 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. --- support-files/build-tags | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/support-files/build-tags b/support-files/build-tags index 1879f9f8891..6c80d2638e9 100755 --- a/support-files/build-tags +++ b/support-files/build-tags @@ -2,8 +2,11 @@ rm -f TAGS 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 etags -o TAGS --append $f done