llvm.org GIT mirror llvm / 9fa4226
Simplify and clean up "update" target. Also 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 Gabor Greif 11 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
141141 fi
142142 $(Verb) $(MAKE) tools-only
143143
144
145
146144 SVN = svn
145 SVN-UPDATE-OPTIONS =
147146 AWK = awk
148 SUB-SVN-DIRS = $(AWK) '/\? / {print $$2}' | xargs $(SVN) info 2>/dev/null | grep "Path: " | $(AWK) '{print $$2}'
147 SUB-SVN-DIRS = $(AWK) '/? / {print $$2}' \
148 | xargs $(SVN) info 2>/dev/null \
149 | $(AWK) '/Path: / {print $$2}'
149150
150151 update:
151 $(SVN) update
152 @ $(SVN) status | $(SUB-SVN-DIRS) | xargs $(SVN) update
152 $(SVN) $(SVN-UPDATE-OPTIONS) update
153 @ $(SVN) status | $(SUB-SVN-DIRS) | xargs $(SVN) $(SVN-UPDATE-OPTIONS) update
153154
154155 happiness: update all check
155156