summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2008-08-06 16:25:25 -0400
committerChad MILLER <chad@mysql.com>2008-08-06 16:25:25 -0400
commit82d13392eb37f3c0f9ebda21c65c274c04845d53 (patch)
tree0208a9a76a76e0b33745ec9f45d5dc05972a5ed8 /support-files
parent93df483fddc5c467080448e53d3b969361a0632c (diff)
downloadmariadb-git-82d13392eb37f3c0f9ebda21c65c274c04845d53.tar.gz
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.
Diffstat (limited to 'support-files')
-rwxr-xr-xsupport-files/build-tags7
1 files 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