Skip to content

Commit

Permalink
[release] Add cmake as an extra tarball and not bundle it
Browse files Browse the repository at this point in the history
Revert "Add cmake/ to release tarballs via concatenation"

This reverts commit 3a33664.

Revert "Add cmake to source release tarballs"

This reverts commit 32a0482.

Reviewed By: tstellar, aaronpuchert

Differential Revision: https://reviews.llvm.org/D125798
  • Loading branch information
kwk committed May 19, 2022
1 parent 2f8c067 commit c0f5bee
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions llvm/utils/release/export.sh
Expand Up @@ -13,7 +13,7 @@

set -e

projects="llvm clang compiler-rt libcxx libcxxabi libclc clang-tools-extra polly lldb lld openmp libunwind flang"
projects="llvm clang cmake compiler-rt libcxx libcxxabi libclc clang-tools-extra polly lldb lld openmp libunwind flang"

release=""
rc=""
Expand Down Expand Up @@ -128,21 +128,10 @@ export_sources() {
-cJf test-suite-$release$rc.src.tar.xz test-suite-$release$rc.src
fi

# Package up top-level cmake directory so that we can append it to all projects.
tmp_dir=$(mktemp -d)
cmake_archive_file=$tmp_dir/cmake.tar
trap "rm -rv $tmp_dir" EXIT
pushd $llvm_src_dir
git archive -o $cmake_archive_file $tree_id cmake/
popd

for proj in $projects; do
echo "Creating tarball for $proj ..."
pushd $llvm_src_dir/$proj
tmp_archive_file=$tmp_dir/$proj.tar
git archive --prefix=$proj-$release$rc.src/ -o $tmp_archive_file $tree_id .
tar -Af $tmp_archive_file $cmake_archive_file
xz < $tmp_archive_file > $target_dir/$(template_file $proj)
git archive --prefix=$proj-$release$rc.src/ $tree_id . | xz >$target_dir/$(template_file $proj)
popd
done
}
Expand Down

0 comments on commit c0f5bee

Please sign in to comment.