Permalink
Browse files

remove rebar.config.script, handle deps via rebar.config

Finally remov ethis ugly hack from apache couchdb and make applications
really independant so we can eventually ship without the map/reduce and
such things.

note: to be totally independant couch_changes_http with view changes should be moved to
its own application. Also we should make sure to move all couchapp calls
in couch_query_server in their own app.
  • Loading branch information...
1 parent 4e2883b commit be0b8b2912bc73f1624eba78c59a53bc9adcbaa7 @benoitc benoitc committed Jul 13, 2014
Showing with 19 additions and 44 deletions.
  1. +19 −0 rebar.config
  2. +0 −44 rebar.config.script
View
19 rebar.config
@@ -13,5 +13,24 @@
{libs_dir, ["src/"]}.
{sub_dirs, ["support/couch_rel", "rel"]}.
+
+{deps, [
+ {couch_replicator, ".*",
+ {git, "https://github.com/rcouch/couchdb-couch-replicator",
+ {branch, "maint"}}},
+
+ {couch_dbupdates, ".*",
+ {git, "https://github.com/rcouch/couchdb-couch-dbupdates",
+ {branch, "1994-merge-rcouch"}}},
+
+ {couch_randomdoc, ".*",
+ {git, "https://github.com/rcouch/couch_randomdoc",
+ {branch, "rcouch-0.1"}}},
+
+ {geocouch, ".*",
+ {git, "https://github.com/rcouch/geocouch",
+ {branch, "rcouch"}}}
+]}.
+
%% build hooks
{post_hooks, [{compile, "escript support/build_js.escript"}]}.
View
44 rebar.config.script
@@ -1,44 +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.
-
-
-DepDescs = [
- %% third-parties applications
- {ibrowse, "ibrowse", {branch, "master"}},
- {jiffy, "couchdb-jiffy", {branch, "1843-feature-bigcouch"}},
- {mochiweb, "couchdb-mochiweb", {branch, "import-upstream"}},
- {oauth, "couchdb-oauth", {branch, "1843-feature-bigcouch"}},
- {snappy, "couchdb-snappy", {branch, "master"}},
- {lager, "couchdb-lager", {branch, "refuge"}},
-
- %% couchdb applications
- {couch_collate, "couchdb-couch-collate", {branch, "master"}},
- {couch, "rcouch-couch", {branch, "master"}},
- {couch_httpd, "couchdb-couch-httpd", {branch, "maint"}},
- {couch_index, "couchdb-couch-index", {branch, "1994-merge-rcouch"}},
- {couch_mrview, "couchdb-couch-mrview", {branch, "1994-merge-rcouch"}},
- {couch_replicator, "couchdb-couch-replicator", {branch, "1994-merge-rcouch"}},
- {couch_dbupdates, "couchdb-couch-dbupdates", {branch, "1994-merge-rcouch"}},
-
- %% extras
- {couch_randomdoc, "couch_randomdoc", {branch, "rcouch-0.1"}},
- {geocouch, "geocouch", {branch, "rcouch"}}
-],
-
-MakeDep = fun({AppName, RepoName, Version}) ->
- Url = "https://github.com/rcouch/" ++ RepoName ++ ".git",
- {AppName, ".*", {git, Url, Version}}
-end,
-
-Deps = [{deps, lists:map(MakeDep, DepDescs)}],
-
-lists:keymerge(1,lists:keysort(1, Deps), lists:keysort(1, CONFIG)).

0 comments on commit be0b8b2

Please sign in to comment.