[llvm-branch-commits] [cfe-branch] r121865 - /cfe/branches/Apple/whitney-IB/ClangBNI.mk
Daniel Dunbar
daniel at zuster.org
Wed Dec 15 08:29:07 PST 2010
Author: ddunbar
Date: Wed Dec 15 10:29:07 2010
New Revision: 121865
URL: http://llvm.org/viewvc/llvm-project?rev=121865&view=rev
Log:
Add update-sources-from-tag convenience target.
Modified:
cfe/branches/Apple/whitney-IB/ClangBNI.mk
Modified: cfe/branches/Apple/whitney-IB/ClangBNI.mk
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney-IB/ClangBNI.mk?rev=121865&r1=121864&r2=121865&view=diff
==============================================================================
--- cfe/branches/Apple/whitney-IB/ClangBNI.mk (original)
+++ cfe/branches/Apple/whitney-IB/ClangBNI.mk Wed Dec 15 10:29:07 2010
@@ -127,6 +127,12 @@
$(error "invalid setting for clang version: '$(Clang_Version)'")
endif
+# Set RC_ProjectSourceVersion, if unspecified.
+ifeq ($(RC_ProjectSourceVersion),)
+RC_ProjectSourceVersion := 99999.99
+$(warning "setting dummy RC_ProjectSourceVersion: '$(RC_ProjectSourceVersion)'")
+endif
+
# Select assertions mode.
ifeq ($(Clang_Use_Assertions), 1)
Assertions_Configure_Flag := --enable-assertions
@@ -294,7 +300,7 @@
# Determine if we are running an SVN utility target.
SVN_UTILITY_TARGETS := \
- test-svn update-sources \
+ test-svn update-sources update-sources-from-tag \
rebranch-llvm-from-tag rebranch-clang-from-tag \
rebranch-clang-from-revision \
tag-clang retag-clang
@@ -371,6 +377,15 @@
$(SVN_COMMAND) cp -m 'Update.' $(CompilerRT_Upstream)@$(REVISION) $(SVN_CLANG)/src/projects/compiler-rt
$(SVN_COMMAND) up
+update-sources-from-tag:
+ @if ! [ -n "$(VERSION)" ]; then \
+ echo Usage: make $@ VERSION=122; \
+ false; \
+ fi
+ $(SVN_COMMAND) rm -m 'Update.' $(SVN_CLANG)/src
+ $(SVN_COMMAND) cp -m 'Update from clang-$(VERSION).' $(SVN_TAGS)/clang-$(VERSION)/src $(SVN_CLANG)/src
+ $(SVN_COMMAND) up
+
rebranch-llvm-from-tag:
@if ! [ -n "$(VERSION)" ]; then \
echo Usage: make $@ VERSION=65; \
More information about the llvm-branch-commits
mailing list