You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2024/06/22 21:23:57 UTC
(couchdb-glazier) 01/01: Extract CouchDB version from `version.mk`
This is an automated email from the ASF dual-hosted git repository.
ronny pushed a commit to branch extract-version-from-version.mk
in repository https://gitbox.apache.org/repos/asf/couchdb-glazier.git
commit c52af8da60ddf583bbd129c8cf26a941a7cf0934
Author: Ronny Berndt <ro...@apache.org>
AuthorDate: Sat Jun 22 23:23:49 2024 +0200
Extract CouchDB version from `version.mk`
The CouchDB version was extracted from the `rel/couchdb/releases/start_erl.data` file. This version string was removed in [1,2].
Since we have a file (`version.mk`) with the released CouchDB version, use this and extract the number from here.
[1] https://github.com/apache/couchdb/pull/5085
[2] https://github.com/apache/couchdb/pull/5078
---
bin/build_installer.ps1 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/build_installer.ps1 b/bin/build_installer.ps1
index ee724e3..ef70078 100644
--- a/bin/build_installer.ps1
+++ b/bin/build_installer.ps1
@@ -34,8 +34,9 @@ if (! $env:VCPKG_BIN)
}
$Glazier = "${PSScriptRoot}\.."
-$CouchDBVersion = Get-Content "${CouchDB}\releases\start_erl.data" |
- ForEach-Object {$_.Split(" ")[1]}
+$VersionMK = Get-Content -Path "$CouchDB_Root\version.mk" | Out-String | ConvertFrom-StringData
+
+$CouchDBVersion = $VersionMK.vsn_major,$VersionMK.vsn_minor,$VersionMK.vsn_patch -join "."
$RelNotesVersion = $CouchDBVersion -replace "^(\d+\.\d+)\..*", '$1'
# clean up from previous runs