This is an automated email from the ASF dual-hosted git repository.
ronny pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new a25336f91 Migrate configure settings to Windows (#4479)
a25336f91 is described below
commit a25336f917c68b03da826f9ef2a0665e1a842438
Author: Ronny Berndt <[email protected]>
AuthorDate: Fri Mar 17 21:52:42 2023 +0100
Migrate configure settings to Windows (#4479)
Migrate the settings `with_proper` and `erlang_md5` to `configure.ps1`
to add it to `config.erl`.
---
configure.ps1 | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/configure.ps1 b/configure.ps1
index 0fe92ed1e..576430e4e 100644
--- a/configure.ps1
+++ b/configure.ps1
@@ -44,6 +44,8 @@ Param(
[switch]$DisableFauxton = $false, # do not build Fauxton
[switch]$DisableDocs = $false, # do not build any documentation or manpages
[switch]$SkipDeps = $false, # do not update erlang dependencies
+ [switch]$DisableProper = $false, # a compilation pragma. proper is a kind
of automated test suite
+ [switch]$EnableErlangMD5 = $false, # don't use Erlang for md5 hash
operations by default
[ValidateNotNullOrEmpty()]
[string]$CouchDBUser = [Environment]::UserName, # set the username to run
as (defaults to current user)
@@ -126,6 +128,8 @@ $LogFile="$LogDir\couch.log"
$BuildFauxton = [int](-not $DisableFauxton)
$BuildDocs = [int](-not $DisableDocs)
$Hostname = [System.Net.Dns]::GetHostEntry([string]"localhost").HostName
+$WithProper = (-not $DisableProper).ToString().ToLower()
+$ErlangMD5 = ($EnableErlangMD5).ToString().ToLower()
Write-Verbose "==> configuring couchdb in rel\couchdb.config"
$CouchDBConfig = @"
@@ -199,6 +203,8 @@ spidermonkey_version = $SpiderMonkeyVersion
$InstallMk | Out-File "$rootdir\install.mk" -encoding ascii
$ConfigERL = @"
+{with_proper, $WithProper}.
+{erlang_md5, $ErlangMD5}.
{spidermonkey_version, "$SpiderMonkeyVersion"}.
"@
$ConfigERL | Out-File "$rootdir\config.erl" -encoding ascii