[PATCH] D70460: export.sh: Fetch sources from GitHub instead of SVN
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 13:20:12 PST 2019
tstellar created this revision.
tstellar added a reviewer: hansw.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70460
Files:
llvm/utils/release/export.sh
Index: llvm/utils/release/export.sh
===================================================================
--- llvm/utils/release/export.sh
+++ 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,31 @@
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$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
+ 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 ..."
- 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{,-$release$rc.src}
+ tar -C $llvm_src_dir -cJf $proj-$release$rc.src.tar.xz $proj-$release$rc.src
done
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70460.230137.patch
Type: text/x-patch
Size: 1994 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191119/3b9ab1a9/attachment.bin>
More information about the llvm-commits
mailing list