[llvm] [release] Fix version extraction in export.sh (PR #85328)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 15:57:24 PDT 2024
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/85328
The LLVM_VERSOIN_* variables were moved to a new file in 81e20472a0c5a4a8edc5ec38dc345d580681af81.
>From 7343bc712536f241b40385859360da884910ed97 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Thu, 14 Mar 2024 22:49:31 +0000
Subject: [PATCH] [release] Fix version extraction in export.sh
The LLVM_VERSOIN_* variables were moved to a new file in
81e20472a0c5a4a8edc5ec38dc345d580681af81.
---
llvm/utils/release/export.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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