From 111d62d2c7808150709e5861e2d83fcd0f6d0a3e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 14 Mar 2013 16:15:54 +0000 Subject: [PATCH] Update the detection of the last svn revision to select the highest among llvm, cfe, polly, compiler-rt & lldb --- debian/orig-tar.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh index ec964e9d..d611a365 100755 --- a/debian/orig-tar.sh +++ b/debian/orig-tar.sh @@ -24,8 +24,22 @@ get_svn_url() { echo $SVN_URL } +get_higher_revision() { + PROJECTS="llvm cfe compiler-rt polly lldb" + REVISION_MAX=0 + for f in $PROJECTS; do + REVISION=$(LANG=C svn info $(get_svn_url $f $BRANCH)|grep "^Last Changed Rev:"|awk '{print $4}') + if test $REVISION -gt $REVISION_MAX; then + REVISION_MAX=$REVISION + fi + done + echo $REVISION_MAX +} + + + if test -n "$BRANCH"; then - REVISION=$(LANG=C svn info $(get_svn_url llvm $BRANCH)|grep "^Last Changed Rev:"|awk '{print $4}') + REVISION=$(get_higher_revision) # Do not use the revision when exporting branch. We consider that all the # branch are sync SVN_CMD="svn export"