2 #===-- tag.sh - Tag the LLVM release candidates ----------------------------===#
4 # The LLVM Compiler Infrastructure
6 # This file is distributed under the University of Illinois Open Source
9 #===------------------------------------------------------------------------===#
11 # Create branches and release candidates for the LLVM release.
13 #===------------------------------------------------------------------------===#
17 projects
="llvm cfe test-suite compiler-rt libcxx libcxxabi clang-tools-extra polly lldb lld openmp libunwind"
18 base_url
="https://llvm.org/svn/llvm-project"
24 echo "Export the SVN sources and build tarballs from them"
25 echo "usage: `basename $0`"
27 echo " -release <num> The version number of the release"
28 echo " -rc <num> The release candidate number"
29 echo " -final The final tag"
33 release_no_dot
=`echo $release | sed -e 's,\.,,g'`
34 tag_dir
="tags/RELEASE_$release_no_dot/$rc"
36 if [ "$rc" = "final" ]; then
40 for proj
in $projects; do
41 echo "Exporting $proj ..."
43 $base_url/$proj/$tag_dir \
46 echo "Creating tarball ..."
47 tar cfJ
$proj-$release$rc.src.
tar.xz
$proj-$release$rc.src
51 while [ $# -gt 0 ]; do
53 -release |
--release )
69 echo "unknown option: $1"
77 if [ "x$release" = "x" ]; then
78 echo "error: need to specify a release version"
82 # Make sure umask is not overly restrictive.