summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2014-02-03 16:16:43 -0600
committerPaul J. Davis <paul.joseph.davis@gmail.com>2014-02-05 08:34:52 -0600
commit52689b75d7a13dd1df4dee48098856cc54857e93 (patch)
tree86a1d4653c401731ef07212b4e16e325b511f482
parent26dbcc160ee6b019fe6513d02edbe8821af4af18 (diff)
downloadcouchdb-52689b75d7a13dd1df4dee48098856cc54857e93.tar.gz
Move to multiple repositories
-rw-r--r--.gitignore1
-rwxr-xr-xconfigure2
-rw-r--r--rebar.config42
-rw-r--r--rebar.config.script47
4 files changed, 50 insertions, 42 deletions
diff --git a/.gitignore b/.gitignore
index a43a06b89..7b37ceab1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@ install.mk
rel/*.config
rel/dev*
rel/tmpdata
+src/
*.o
*.so
diff --git a/configure b/configure
index 4e59ca607..c95a9889b 100755
--- a/configure
+++ b/configure
@@ -80,3 +80,5 @@ cat > rel/dev$i.config << EOF
{backend_port, `expr 10000 \* $i + 5986`}.
EOF
done
+
+rebar get-deps && rebar update-deps && cat rel/couchdb.config
diff --git a/rebar.config b/rebar.config
deleted file mode 100644
index 1372f2630..000000000
--- a/rebar.config
+++ /dev/null
@@ -1,42 +0,0 @@
-% 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
-% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-% License for the specific language governing permissions and limitations under
-% the License.
-
-{require_otp_vsn, "R14B01|R14B03|R14B04|R15B02|R15B03|R16"}.
-
-{sub_dirs, [
- "src/ibrowse",
- "src/config",
- "src/couch",
- "src/couch_index",
- "src/couch_mrview",
- "src/mem3",
-
- "src/chttpd",
- "src/couch_replicator",
- "src/ddoc_cache",
- "src/ejson",
- "src/ets_lru",
- "src/fabric",
- "src/mochiweb",
- "src/oauth",
- "src/rexi",
- "src/snappy",
- "src/twig",
-
- "rel"
-]}.
-
-{lib_dirs, ["src/"]}.
-
-{erl_opts, [debug_info]}.
-
-{post_hooks, [{compile, "escript support/build_js.escript"}]}.
diff --git a/rebar.config.script b/rebar.config.script
new file mode 100644
index 000000000..0efa6fa42
--- /dev/null
+++ b/rebar.config.script
@@ -0,0 +1,47 @@
+% 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
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
+{require_otp_vsn, "R14B01|R14B03|R14B04|R15B02|R15B03|R16"}.
+
+DepDescs = [
+ {chttpd, "couchdb-chttpd", {branch, import}},
+ {config, "couchdb-config", {branch, import}},
+ {couch, "couchdb-couch", {branch, import}},
+ {couch_index, "couchdb-couch-index", {branch, import}},
+ {couch_mrview, "couchdb-couch-mrview", {branch, import}},
+ {couch_replicator, "couchdb-couch-replicator", {branch, import}},
+ {ddoc_cache, "couchdb-ddoc-cache", {branch, import}},
+ {ets_lru, "couchdb-ets-lru", {branch, import}},
+ {fabric, "couchdb-fabric", {branch, import}},
+ {ibrowse, "couchdb-ibrowse", {branch, import}},
+ {jiffy, "couchdb-jiffy", {branch, import}},
+ {mem3, "couchdb-mem3", {branch, import}},
+ {mochiweb, "couchdb-mochiweb", {branch, import}},
+ {oauth, "couchdb-oauth", {branch, import}},
+ {rexi, "couchdb-rexi", {branch, import}},
+ {snappy, "couchdb-snappy", {branch, import}},
+ {twig, "couchdb-twig", {branch, import}}
+],
+
+MakeDep = fun({AppName, RepoName, Version}) ->
+ Url = "https://git-wip-us.apache.org/repos/asf/" ++ RepoName ++ ".git",
+ {AppName, ".*", {git, Url, Version}}
+end,
+
+[
+ {deps_dir, "src"},
+ {deps, lists:map(MakeDep, DepDescs)},
+ {sub_dirs, ["rel"]},
+ {lib_dirs, ["src/"]},
+ {erl_opts, [debug_info]},
+ {post_hooks, [{compile, "escript support/build_js.escript"}]}
+].