List:Commits« Previous MessageNext Message »
From:Chad MILLER Date:August 6 2008 8:27pm
Subject:bzr commit into mysql-5.0 branch (chad:2654) Bug#37201
View as plain text  
#At file:///home/cmiller/work/mysqlbzr/mysql-5.0-bugteam/

 2654 Chad MILLER	2008-08-06
      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.
modified:
  support-files/build-tags

=== modified file 'support-files/build-tags'
--- a/support-files/build-tags	2008-08-06 19:27:28 +0000
+++ b/support-files/build-tags	2008-08-06 20:25:25 +0000
@@ -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

Thread
bzr commit into mysql-5.0 branch (chad:2654) Bug#37201Chad MILLER6 Aug