[llvm] 9cea288 - [release] Fix version extraction in export.sh (#85328)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 07:32:14 PDT 2024
Author: Tom Stellard
Date: 2024-03-18T15:32:10+01:00
New Revision: 9cea288bf789c74146cb211a2b5a84895e6866ac
URL: https://github.com/llvm/llvm-project/commit/9cea288bf789c74146cb211a2b5a84895e6866ac
DIFF: https://github.com/llvm/llvm-project/commit/9cea288bf789c74146cb211a2b5a84895e6866ac.diff
LOG: [release] Fix version extraction in export.sh (#85328)
The LLVM_VERSION_* variables were moved to a new file in
81e20472a0c5a4a8edc5ec38dc345d580681af81.
Added:
Modified:
llvm/utils/release/export.sh
Removed:
################################################################################
diff --git a/llvm/utils/release/export.sh b/llvm/utils/release/export.sh
index 9fd906c49ea6e5..66bef82586a348 100755
--- a/llvm/utils/release/export.sh
+++ b/llvm/utils/release/export.sh
@@ -84,7 +84,7 @@ export_sources() {
# Determine the release by fetching the version from LLVM's CMakeLists.txt
# in the specified git ref.
if [ -n "$snapshot" ]; then
- release=$(git -C $llvm_src_dir show $snapshot:llvm/CMakeLists.txt | grep -ioP 'set\(\s*LLVM_VERSION_(MAJOR|MINOR|PATCH)\s\K[0-9]+' | paste -sd '.')
+ release=$(git -C $llvm_src_dir show $snapshot:cmake/Modules/LLVMVersion.cmake | grep -ioP 'set\(\s*LLVM_VERSION_(MAJOR|MINOR|PATCH)\s\K[0-9]+' | paste -sd '.')
fi
tag="llvmorg-$release"
More information about the llvm-commits
mailing list