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
commitb94519a154f9511b11f475a3b62ebb377b0e3c83 (patch)
tree0208a9a76a76e0b33745ec9f45d5dc05972a5ed8 /support-files
parent15beb38f9f47fe3807268c5d354d1a2bfefbfa3d (diff)
downloadmariadb-git-b94519a154f9511b11f475a3b62ebb377b0e3c83.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