diff options
author | jiangph <jiangph@cn.ibm.com> | 2020-01-14 16:55:19 +0800 |
---|---|---|
committer | jiangph <jiangph@cn.ibm.com> | 2020-01-16 21:45:11 +0800 |
commit | 34bace74a1ec6fbc5257f315817f0792f9e79b04 (patch) | |
tree | 6be2cd8edf5a7060dedfd5ebf1a3b737ac86be15 | |
parent | d51ace1a9a27b986d45717be3bb15f63f9b9c836 (diff) | |
download | couchdb-34bace74a1ec6fbc5257f315817f0792f9e79b04.tar.gz |
More way to detect presence of hastings for Ken
After moving ken from https://github.com/apache/couchdb-ken to
https://github.com/apache/couchdb/tree/master/src/ken. The directory
structure related to ken is changed for downstream including Cloudant.
Increase more way to detect presence of hastings for Ken so that
Ken can work correctly for geospatial index.
-rw-r--r-- | src/ken/rebar.config.script | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ken/rebar.config.script b/src/ken/rebar.config.script index 26d6f4caa..3344206e5 100644 --- a/src/ken/rebar.config.script +++ b/src/ken/rebar.config.script @@ -11,7 +11,9 @@ % the License. HaveDreyfus = element(1, file:list_dir("../dreyfus")) == ok. -HaveHastings = element(1, file:list_dir("../hastings")) == ok. + +HastingsHome = os:getenv("HASTINGS_HOME", "../hastings"). +HaveHastings = element(1, file:list_dir(HastingsHome)) == ok. CurrOpts = case lists:keyfind(erl_opts, 1, CONFIG) of {erl_opts, Opts} -> Opts; |