mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-08 07:39:41 +00:00
Update the detection of the last svn revision to select the highest among llvm, cfe, polly, compiler-rt & lldb
This commit is contained in:
parent
421f497057
commit
111d62d2c7
16
debian/orig-tar.sh
vendored
16
debian/orig-tar.sh
vendored
@ -24,8 +24,22 @@ get_svn_url() {
|
|||||||
echo $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
|
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
|
# Do not use the revision when exporting branch. We consider that all the
|
||||||
# branch are sync
|
# branch are sync
|
||||||
SVN_CMD="svn export"
|
SVN_CMD="svn export"
|
||||||
|
Loading…
Reference in New Issue
Block a user