Fix regular expression used by 'make update' to only look for 'I' and '?' at the...
authorCraig Topper <craig.topper@gmail.com>
Wed, 3 Jul 2013 14:48:37 +0000 (14:48 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 3 Jul 2013 14:48:37 +0000 (14:48 +0000)
Previously it was able to match 'I' anywhere in the filenames of the svn info results instead of just files that where ignored or unknown to svn. This would cause 'make update' to infinitely recurse if a file was modified with I anywhere in its name since svn info would return a Path pointing to the llvm root for those files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185539 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile

index 7a1b19045945fe86bf9a233839e4dcfbacbfa52d..fee675d3f26c83b7fbddf5f6abdb9e6631bbb9d0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -253,7 +253,7 @@ AWK = awk
 # a given path. svnup() requires one argument: the root to search from.
 define SUB_SVN_DIRS
 svnup() {
-  dirs=`svn status --no-ignore $$1 | awk '/I|\?      / {print $$2}' | LC_ALL=C xargs svn info 2>/dev/null | awk '/^Path:\ / {print $$2}'`;
+  dirs=`svn status --no-ignore $$1 | awk '/^(I|\?) / {print $$2}' | LC_ALL=C xargs svn info 2>/dev/null | awk '/^Path:\ / {print $$2}'`;
   if [ "$$dirs" = "" ]; then
     return;
   fi;