summaryrefslogtreecommitdiff
path: root/tcwg-llvm-release.sh
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2019-11-25 11:06:17 +0100
committerDiana Picus <diana.picus@linaro.org>2019-12-04 12:17:51 +0000
commit81d2bd4a8e4fd5eaefd0e39dab62e013e7424345 (patch)
tree54484743f23bf49d90260fc33e3ee9bf652c4624 /tcwg-llvm-release.sh
parent4318caa69cebc4a16e8d22cf1923c9ed062907fc (diff)
tcwg-llvm-release: Get test-release.sh from GitHub
SVN doesn't work anymore, so we need to fetch test-release.sh from a GitHub link. The format of the release tag has also changed. Change-Id: I49ca98589ccc0456e92e1f10d8bad9b5685f7e40
Diffstat (limited to 'tcwg-llvm-release.sh')
-rwxr-xr-xtcwg-llvm-release.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/tcwg-llvm-release.sh b/tcwg-llvm-release.sh
index 7aa0e310..f8aeb1c7 100755
--- a/tcwg-llvm-release.sh
+++ b/tcwg-llvm-release.sh
@@ -174,10 +174,13 @@ LOGEXT="txt"
# Release script
RELEASE_SCRIPT="test-release.sh"
-SVN_RELEASE_TAG="RELEASE_$(echo "$RELEASE" | awk 'BEGIN { FS="." }; { print $1 $2 $3}')"
-SCRIPT_URL=http://llvm.org/svn/llvm-project/llvm/tags/$SVN_RELEASE_TAG/$RCDIR/utils/release/$RELEASE_SCRIPT
-cd "$WORKSPACE" && svn cat "$SCRIPT_URL" > $RELEASE_SCRIPT
-cd "$WORKSPACE" && chmod +x $RELEASE_SCRIPT
+RELEASE_TAG="llvmorg-${RELEASE}${RCTAG}"
+SCRIPT_URL=https://raw.githubusercontent.com/llvm/llvm-project/$RELEASE_TAG/llvm/utils/release/$RELEASE_SCRIPT
+(
+ cd "$WORKSPACE"
+ curl -o "$RELEASE_SCRIPT" "$SCRIPT_URL"
+ chmod +x $RELEASE_SCRIPT
+)
# Call script
# - ignoring the return value until the end, because of set -e