diff --git a/llvm/utils/release/export.sh b/llvm/utils/release/export.sh --- a/llvm/utils/release/export.sh +++ b/llvm/utils/release/export.sh @@ -34,17 +34,18 @@ Usage: $(basename $0) [-release|--release ..] [-rc|--rc ] [-final|--final] - [-snapshot|--snapshot ] + [-git-ref|--git-ref ] Flags: -release | --release .. The version number of the release -rc | --rc The release candidate number -final | --final When provided, this option will disable the rc flag - -snapshot | --snapshot (optional) Use to determine the release and don't export the test-suite files + -git-ref | --git-ref (optional) Use to determine the release and don't export the test-suite files -These are the filenames (with ) for the artifacts and hard -links for each LLVM component created by this script: +The following list shows the filenames (with ) for the artifacts and +hard links for each LLVM component created by this script. Notice, the hard links +are only created when you give --git-ref . $(\ echo "$projects " \ @@ -56,7 +57,7 @@ Additional files being generated: * llvm-project-.src.tar.xz (the complete LLVM source project) - * test-suite-.src.tar.xz (only when not using --snapshot) + * test-suite-.src.tar.xz (only when not using --git-ref) To ease the creation of snapshot builds, we also provide these files @@ -68,19 +69,13 @@ * -> 13.0.0 * -> 20210414 - * -> rc4 (will be empty when using --snapshot) + * -> rc4 (will be empty when using --git-ref) EOF } export_sources() { tag="llvmorg-$release" - if [ "$rc" = "final" ]; then - rc="" - else - tag="$tag-$rc" - fi - llvm_src_dir=$(readlink -f $(dirname "$(readlink -f "$0")")/../../..) [ -d $llvm_src_dir/.git ] || ( echo "No git repository at $llvm_src_dir" ; exit 1 ) @@ -151,7 +146,7 @@ -final | --final ) rc="final" ;; - -snapshot | --snapshot ) + -git-ref | --git-ref ) shift snapshot="$1" ;;