Simplify and clean up "update" target. Also
authorGabor Greif <ggreif@gmail.com>
Thu, 28 Feb 2008 14:58:14 +0000 (14:58 +0000)
committerGabor Greif <ggreif@gmail.com>
Thu, 28 Feb 2008 14:58:14 +0000 (14:58 +0000)
add an SVN-UPDATE-OPTIONS variable that controls
the update behaviour. This allows to go to a common
older revision of all svn directories:

  gmake update SVN-UPDATE-OPTIONS=-r47717

would rewind both llvm and clang to a common
revision (if clang is checked out into the llvm
tree).

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

Makefile

index dabf0c03fe80a60911b972f6cb343ca2a1b6c253..9bb311e318f2de2bd156e186c054b59bdb596d30 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -142,15 +142,16 @@ build-for-llvm-top:
        fi
        $(Verb) $(MAKE) tools-only
 
-
-
 SVN = svn
+SVN-UPDATE-OPTIONS =
 AWK = awk
-SUB-SVN-DIRS = $(AWK) '/\?      / {print $$2}' | xargs $(SVN) info 2>/dev/null | grep "Path: " | $(AWK) '{print $$2}'
+SUB-SVN-DIRS = $(AWK) '/?      / {print $$2}'   \
+               | xargs $(SVN) info 2>/dev/null \
+               | $(AWK) '/Path: / {print $$2}'
 
 update:
-       $(SVN) update
-       @ $(SVN) status | $(SUB-SVN-DIRS) | xargs $(SVN) update
+       $(SVN) $(SVN-UPDATE-OPTIONS) update
+       @ $(SVN) status | $(SUB-SVN-DIRS) | xargs $(SVN) $(SVN-UPDATE-OPTIONS) update
 
 happiness: update all check