Fix regular expression used by 'make update' to only look for 'I' and '?' at the...
[oota-llvm.git] / 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;