[llvm-commits] [llvm] r47717 - /llvm/trunk/Makefile
Gabor Greif
ggreif at gmail.com
Thu Feb 28 06:58:14 PST 2008
Author: ggreif
Date: Thu Feb 28 08:58:14 2008
New Revision: 47717
URL: http://llvm.org/viewvc/llvm-project?rev=47717&view=rev
Log:
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).
Modified:
llvm/trunk/Makefile
Modified: llvm/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile?rev=47717&r1=47716&r2=47717&view=diff
==============================================================================
--- llvm/trunk/Makefile (original)
+++ llvm/trunk/Makefile Thu Feb 28 08:58:14 2008
@@ -142,15 +142,16 @@
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
More information about the llvm-commits
mailing list