summaryrefslogtreecommitdiff
path: root/configure.ps1
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2019-12-02 13:52:08 -0600
committerjiangph <jiangph@cn.ibm.com>2019-12-20 22:44:35 +0800
commit2336964a33a2d0bc1b599345e4f545a7077e0438 (patch)
tree050e957f476c873ede7115dd9a8c57fc9661d640 /configure.ps1
parentcef0fa04400a8b755592f021d0d461aae1d9bcaf (diff)
downloadcouchdb-2336964a33a2d0bc1b599345e4f545a7077e0438.tar.gz
Add SpiderMonkey version option to configure
Diffstat (limited to 'configure.ps1')
-rw-r--r--configure.ps18
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ps1 b/configure.ps1
index 418cac3d3..9888a9fe0 100644
--- a/configure.ps1
+++ b/configure.ps1
@@ -10,6 +10,7 @@
-DisableDocs request build process skip building documentation (default false)
-SkipDeps do not update Erlang dependencies (default false)
-CouchDBUser USER set the username to run as (defaults to current user)
+ -SpiderMonkeyVersion VSN select the version of SpiderMonkey to use (defaults to 1.8.5)
Installation directories:
-Prefix PREFIX install architecture-independent files in PREFIX
@@ -49,6 +50,8 @@ Param(
[ValidateNotNullOrEmpty()]
[string]$CouchDBUser = [Environment]::UserName, # set the username to run as (defaults to current user)
[ValidateNotNullOrEmpty()]
+ [string]$SpiderMonkeyVersion = "1.8.5", # select the version of SpiderMonkey to use (default 1.8.5)
+ [ValidateNotNullOrEmpty()]
[string]$Prefix = "C:\Program Files\Apache\CouchDB", # install architecture-independent file location (default C:\Program Files\Apache\CouchDB)
[ValidateNotNullOrEmpty()]
[string]$ExecPrefix = $Prefix, # install architecture-dependent file location (default C:\Program Files\Apache\CouchDB)
@@ -133,6 +136,7 @@ $CouchDBConfig = @"
{log_file, ""}.
{fauxton_root, "./share/www"}.
{user, "$CouchDBUser"}.
+{spidermonkey_version, "$SpiderMonkeyVersion"}.
{node_name, "-name couchdb@localhost"}.
{cluster_port, 5984}.
{backend_port, 5986}.
@@ -144,7 +148,7 @@ $InstallMk = @"
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
-#
+#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@@ -175,12 +179,14 @@ with_fauxton = $BuildFauxton
with_docs = $BuildDocs
user = $CouchDBUser
+spidermonkey_version = $SpiderMonkeyVersion
"@
$InstallMk | Out-File "$rootdir\install.mk" -encoding ascii
$lowercurl = "$WithCurl".ToLower()
$ConfigERL = @"
{with_curl, $lowercurl}.
+{spidermonkey_version, "$SpiderMonkeyVersion"}.
"@
$ConfigERL | Out-File "$rootdir\config.erl" -encoding ascii