Update the detection of the last svn revision to select the highest among llvm, cfe, polly, compiler-rt & lldb

This commit is contained in:
Sylvestre Ledru 2013-03-14 16:15:54 +00:00
parent 421f497057
commit 111d62d2c7

16
debian/orig-tar.sh vendored
View File

@ -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"