aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2019-11-27 19:44:20 +0000
committerTom Stellard <tstellar@redhat.com>2019-12-11 11:15:30 -0800
commitc1a0a213378a458fbea1a5c77b315c7dce08fd05 (patch)
tree89a656e14d30fe4d846f733aa01fc6b475263e55
parentMerging r372480: (diff)
downloadllvm-project-llvmorg-9.0.1.tar.gz
llvm-project-llvmorg-9.0.1.tar.bz2
llvm-project-llvmorg-9.0.1.zip
export.sh: Fetch sources from GitHub instead of SVNllvmorg-9.0.1-rc3llvmorg-9.0.1release/9.x
Reviewers: hansw, jdoerfert Subscribers: sylvestre.ledru, mgorny, hans, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70460 (cherry picked from commit edf6717d8d30034da932b95350898e03c90a5082)
-rwxr-xr-xllvm/utils/release/export.sh35
1 files changed, 24 insertions, 11 deletions
diff --git a/llvm/utils/release/export.sh b/llvm/utils/release/export.sh
index 9cd64a3d255f..02a77afd0533 100755
--- a/llvm/utils/release/export.sh
+++ b/llvm/utils/release/export.sh
@@ -13,14 +13,13 @@
set -e
-projects="llvm cfe test-suite compiler-rt libcxx libcxxabi clang-tools-extra polly lldb lld openmp libunwind"
-base_url="https://llvm.org/svn/llvm-project"
+projects="llvm clang test-suite compiler-rt libcxx libcxxabi clang-tools-extra polly lldb lld openmp libunwind"
release=""
rc=""
usage() {
- echo "Export the SVN sources and build tarballs from them"
+ echo "Export the Git sources and build tarballs from them"
echo "usage: `basename $0`"
echo " "
echo " -release <num> The version number of the release"
@@ -30,20 +29,34 @@ usage() {
export_sources() {
release_no_dot=`echo $release | sed -e 's,\.,,g'`
- tag_dir="tags/RELEASE_$release_no_dot/$rc"
+ tag="llvmorg-$release"
if [ "$rc" = "final" ]; then
rc=""
+ else
+ tag="$tag-$rc"
fi
- for proj in $projects; do
- echo "Exporting $proj ..."
- svn export \
- $base_url/$proj/$tag_dir \
- $proj-$release$rc.src
+ llvm_src_dir=llvm-project-$release$rc
+ mkdir -p $llvm_src_dir
+
+ echo $tag
+ echo "Fetching LLVM project source ..."
+ curl -L https://github.com/llvm/llvm-project/archive/$tag.tar.gz | \
+ tar -C $llvm_src_dir --strip-components=1 -xzf -
+
+ echo "Creating tarball for llvm-project ..."
+ tar -cJf llvm-project-$release$rc.tar.xz $llvm_src_dir
- echo "Creating tarball ..."
- tar cfJ $proj-$release$rc.src.tar.xz $proj-$release$rc.src
+ echo "Fetching LLVM test-suite source ..."
+ mkdir -p $llvm_src_dir/test-suite
+ curl -L https://github.com/llvm/test-suite/archive/$tag.tar.gz | \
+ tar -C $llvm_src_dir/test-suite --strip-components=1 -xzf -
+
+ for proj in $projects; do
+ echo "Creating tarball for $proj ..."
+ mv $llvm_src_dir/$proj $llvm_src_dir/$proj-$release$rc.src
+ tar -C $llvm_src_dir -cJf $proj-$release$rc.src.tar.xz $proj-$release$rc.src
done
}