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 2023/03/16 12:37:56 UTC

[couchdb] branch migrate-with-proper-and-erlang-md5-to-windows created (now 9f0ecf3b6)

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

ronny pushed a change to branch migrate-with-proper-and-erlang-md5-to-windows
in repository https://gitbox.apache.org/repos/asf/couchdb.git


      at 9f0ecf3b6 Migrate configure settings to Windows

This branch includes the following new commits:

     new 9f0ecf3b6 Migrate configure settings to Windows

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: Migrate configure settings to Windows

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ronny pushed a commit to branch migrate-with-proper-and-erlang-md5-to-windows
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 9f0ecf3b602d2ee299e7d92d86f2862284cb00cd
Author: Ronny Berndt <ro...@apache.org>
AuthorDate: Thu Mar 16 13:34:34 2023 +0100

    Migrate configure settings to Windows
    
    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..825cd13e3 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.IsPresent)).ToString().ToLower()
+$ErlangMD5 = ($EnableErlangMD5.IsPresent).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