This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new a94684290 fix(dev/release): update C# <VersionSuffix> tag (#1973)
a94684290 is described below

commit a94684290a1f6f6d6c39c9ec640d974eeabf199c
Author: David Li <[email protected]>
AuthorDate: Sat Jul 6 06:27:43 2024 +0900

    fix(dev/release): update C# <VersionSuffix> tag (#1973)
    
    Fixes #1968.
    
    ---------
    
    Co-authored-by: Sutou Kouhei <[email protected]>
---
 dev/release/utils-prepare.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev/release/utils-prepare.sh b/dev/release/utils-prepare.sh
index a596dcc63..5ea4a6aba 100644
--- a/dev/release/utils-prepare.sh
+++ b/dev/release/utils-prepare.sh
@@ -28,6 +28,7 @@ update_versions() {
   case ${type} in
     release)
       local c_version="${VERSION_NATIVE}"
+      local csharp_suffix=""
       local docs_version="${RELEASE}"
       local glib_version="${VERSION_NATIVE}"
       local java_version="${VERSION_JAVA}"
@@ -36,6 +37,7 @@ update_versions() {
       ;;
     snapshot)
       local c_version="${VERSION_NATIVE}-SNAPSHOT"
+      local csharp_suffix="SNAPSHOT"
       local docs_version="${RELEASE} (dev)"
       local glib_version="${VERSION_NATIVE}-SNAPSHOT"
       local java_version="${VERSION_JAVA}-SNAPSHOT"
@@ -77,7 +79,10 @@ update_versions() {
   git add meta.yaml
   popd
 
-  sed -i.bak -E 
"s|<VersionPrefix>.+</VersionPrefix>|<VersionPrefix>${csharp_version}</VersionPrefix>|"
 "${ADBC_DIR}/csharp/Directory.Build.props"
+  sed -i.bak \
+    -E 
"s|<VersionPrefix>.+</VersionPrefix>|<VersionPrefix>${csharp_version}</VersionPrefix>|"
 \
+    -E 
"s|<VersionSuffix>.+</VersionSuffix>|<VersionSuffix>${csharp_suffix}</VersionSuffix>|"
 \
+    "${ADBC_DIR}/csharp/Directory.Build.props"
   rm "${ADBC_DIR}/csharp/Directory.Build.props.bak"
   git add "${ADBC_DIR}/csharp/Directory.Build.props"
 

Reply via email to