couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beno...@apache.org
Subject [51/57] [abbrv] [partial] git commit: updated refs/heads/1994-merge-rcouch to 868a284
Date Tue, 07 Jan 2014 00:37:11 GMT
inital move to rebar compilation

- move src/apps
- download dependencies using rebar
- replace ejson by jiffy
- replace couch_drv & couch_ejson_compare by couch_collate


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/add91738
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/add91738
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/add91738

Branch: refs/heads/1994-merge-rcouch
Commit: add9173866fc5ad4739cd27dab92cacad95e9106
Parents: 480c620
Author: Benoit Chesneau <benoitc@apache.org>
Authored: Mon Jan 6 21:12:45 2014 +0100
Committer: Benoit Chesneau <benoitc@apache.org>
Committed: Mon Jan 6 21:12:45 2014 +0100

----------------------------------------------------------------------
 .gitignore                                      |    15 +-
 apps/Makefile.am                                |   315 +
 apps/couch/include/couch_db.hrl                 |   286 +
 apps/couch/priv/Makefile.am                     |   151 +
 apps/couch/priv/couch_js/help.h                 |    82 +
 apps/couch/priv/couch_js/http.c                 |   698 +
 apps/couch/priv/couch_js/http.h                 |    27 +
 apps/couch/priv/couch_js/main.c                 |    21 +
 apps/couch/priv/couch_js/sm170.c                |   398 +
 apps/couch/priv/couch_js/sm180.c                |   407 +
 apps/couch/priv/couch_js/sm185.c                |   431 +
 apps/couch/priv/couch_js/utf8.c                 |   294 +
 apps/couch/priv/couch_js/utf8.h                 |    19 +
 apps/couch/priv/couch_js/util.c                 |   294 +
 apps/couch/priv/couch_js/util.h                 |    35 +
 .../priv/spawnkillable/couchspawnkillable.sh    |    20 +
 .../priv/spawnkillable/couchspawnkillable_win.c |   145 +
 apps/couch/priv/stat_descriptions.cfg.in        |    50 +
 apps/couch/src/Makefile.am                      |   198 +
 apps/couch/src/couch.app.src                    |    23 +
 apps/couch/src/couch.erl                        |    58 +
 apps/couch/src/couch_app.erl                    |    36 +
 apps/couch/src/couch_auth_cache.erl             |   425 +
 apps/couch/src/couch_btree.erl                  |   714 +
 apps/couch/src/couch_changes.erl                |   577 +
 apps/couch/src/couch_compaction_daemon.erl      |   504 +
 apps/couch/src/couch_compress.erl               |    84 +
 apps/couch/src/couch_config.erl                 |   251 +
 apps/couch/src/couch_config_writer.erl          |    88 +
 apps/couch/src/couch_db.erl                     |  1358 ++
 apps/couch/src/couch_db_update_notifier.erl     |    82 +
 apps/couch/src/couch_db_update_notifier_sup.erl |    61 +
 apps/couch/src/couch_db_updater.erl             |  1035 ++
 apps/couch/src/couch_doc.erl                    |   650 +
 apps/couch/src/couch_ejson_compare.erl          |    81 +
 apps/couch/src/couch_event_sup.erl              |    73 +
 apps/couch/src/couch_external_manager.erl       |   101 +
 apps/couch/src/couch_external_server.erl        |    70 +
 apps/couch/src/couch_file.erl                   |   532 +
 apps/couch/src/couch_httpd.erl                  |  1114 ++
 apps/couch/src/couch_httpd_auth.erl             |   380 +
 apps/couch/src/couch_httpd_cors.erl             |   351 +
 apps/couch/src/couch_httpd_db.erl               |  1226 ++
 apps/couch/src/couch_httpd_external.erl         |   177 +
 apps/couch/src/couch_httpd_misc_handlers.erl    |   318 +
 apps/couch/src/couch_httpd_oauth.erl            |   387 +
 apps/couch/src/couch_httpd_proxy.erl            |   426 +
 apps/couch/src/couch_httpd_rewrite.erl          |   484 +
 apps/couch/src/couch_httpd_stats_handlers.erl   |    56 +
 apps/couch/src/couch_httpd_vhost.erl            |   383 +
 apps/couch/src/couch_js_functions.hrl           |   170 +
 apps/couch/src/couch_key_tree.erl               |   422 +
 apps/couch/src/couch_log.erl                    |   254 +
 apps/couch/src/couch_native_process.erl         |   409 +
 apps/couch/src/couch_os_daemons.erl             |   374 +
 apps/couch/src/couch_os_process.erl             |   216 +
 apps/couch/src/couch_passwords.erl              |   119 +
 apps/couch/src/couch_primary_sup.erl            |    66 +
 apps/couch/src/couch_query_servers.erl          |   616 +
 apps/couch/src/couch_ref_counter.erl            |   111 +
 apps/couch/src/couch_secondary_sup.erl          |    49 +
 apps/couch/src/couch_server.erl                 |   499 +
 apps/couch/src/couch_server_sup.erl             |   164 +
 apps/couch/src/couch_stats_aggregator.erl       |   297 +
 apps/couch/src/couch_stats_collector.erl        |   136 +
 apps/couch/src/couch_stream.erl                 |   299 +
 apps/couch/src/couch_task_status.erl            |   151 +
 apps/couch/src/couch_users_db.erl               |   121 +
 apps/couch/src/couch_util.erl                   |   487 +
 apps/couch/src/couch_uuids.erl                  |   103 +
 apps/couch/src/couch_work_queue.erl             |   187 +
 apps/couch/src/json_stream_parse.erl            |   432 +
 apps/couch_collate/c_src/couch_collate.c        |   281 +
 apps/couch_collate/rebar.config                 |     9 +
 apps/couch_collate/rebar.config.script          |    46 +
 apps/couch_collate/src/couch_collate.app.src    |    13 +
 apps/couch_collate/src/couch_collate.erl        |    62 +
 apps/couch_dbupdates/Makefile.am                |    33 +
 .../couch_dbupdates/src/couch_dbupdates.app.src |    11 +
 apps/couch_dbupdates/src/couch_dbupdates.erl    |    46 +
 .../src/couch_dbupdates_httpd.erl               |    69 +
 apps/couch_index/Makefile.am                    |    40 +
 apps/couch_index/src/couch_index.app.src        |    22 +
 apps/couch_index/src/couch_index.erl            |   338 +
 apps/couch_index/src/couch_index_api.erl        |    54 +
 apps/couch_index/src/couch_index_compactor.erl  |   113 +
 apps/couch_index/src/couch_index_server.erl     |   201 +
 apps/couch_index/src/couch_index_updater.erl    |   200 +
 apps/couch_index/src/couch_index_util.erl       |    77 +
 apps/couch_mrview/Makefile.am                   |    73 +
 apps/couch_mrview/include/couch_mrview.hrl      |    81 +
 apps/couch_mrview/src/couch_mrview.app.src      |    28 +
 apps/couch_mrview/src/couch_mrview.erl          |   387 +
 apps/couch_mrview/src/couch_mrview_cleanup.erl  |    45 +
 .../couch_mrview/src/couch_mrview_compactor.erl |   178 +
 apps/couch_mrview/src/couch_mrview_http.erl     |   409 +
 apps/couch_mrview/src/couch_mrview_index.erl    |   162 +
 apps/couch_mrview/src/couch_mrview_show.erl     |   368 +
 .../couch_mrview/src/couch_mrview_test_util.erl |    92 +
 apps/couch_mrview/src/couch_mrview_updater.erl  |   282 +
 apps/couch_mrview/src/couch_mrview_util.erl     |   802 +
 apps/couch_mrview/test/01-load.t                |    34 +
 apps/couch_mrview/test/02-map-views.t           |   131 +
 apps/couch_mrview/test/03-red-views.t           |    78 +
 apps/couch_mrview/test/04-index-info.t          |    54 +
 apps/couch_mrview/test/05-collation.t           |   163 +
 apps/couch_mrview/test/06-all-docs.t            |   127 +
 apps/couch_mrview/test/07-compact-swap.t        |    57 +
 apps/couch_plugins/Makefile.am                  |    40 +
 apps/couch_plugins/README.md                    |   159 +
 apps/couch_plugins/src/couch_plugins.app.src    |    23 +
 apps/couch_plugins/src/couch_plugins.erl        |   300 +
 apps/couch_plugins/src/couch_plugins_httpd.erl  |    65 +
 apps/couch_replicator/Makefile.am               |    78 +
 .../src/couch_replicator.app.src                |    33 +
 apps/couch_replicator/src/couch_replicator.erl  |   965 +
 apps/couch_replicator/src/couch_replicator.hrl  |    30 +
 .../src/couch_replicator_api_wrap.erl           |   877 +
 .../src/couch_replicator_api_wrap.hrl           |    36 +
 .../src/couch_replicator_httpc.erl              |   297 +
 .../src/couch_replicator_httpc_pool.erl         |   138 +
 .../src/couch_replicator_httpd.erl              |    66 +
 .../src/couch_replicator_job_sup.erl            |    31 +
 .../src/couch_replicator_js_functions.hrl       |   151 +
 .../src/couch_replicator_manager.erl            |   709 +
 .../src/couch_replicator_notifier.erl           |    57 +
 .../src/couch_replicator_utils.erl              |   396 +
 .../src/couch_replicator_worker.erl             |   515 +
 apps/couch_replicator/test/01-load.t            |    37 +
 apps/couch_replicator/test/02-httpc-pool.t      |   250 +
 .../test/03-replication-compact.t               |   488 +
 .../test/04-replication-large-atts.t            |   267 +
 .../test/05-replication-many-leaves.t           |   294 +
 .../test/06-doc-missing-stubs.t                 |   304 +
 apps/couch_replicator/test/07-use-checkpoints.t |   256 +
 apps/couchjs-node/Makefile.am                   |    24 +
 apps/couchjs-node/README.md                     |    32 +
 apps/couchjs-node/cli.js                        |    89 +
 apps/couchjs-node/console.js                    |    66 +
 apps/couchjs-node/couchdb.js                    |    29 +
 apps/couchjs-node/couchjs.js                    |   133 +
 apps/couchjs-node/inspector.js                  |   101 +
 apps/couchjs-node/package.json                  |    40 +
 apps/couchjs-node/sandbox.js                    |    47 +
 apps/couchjs-node/stream.js                     |   115 +
 apps/couchjs-node/test/experiment.js            |   125 +
 apps/couchjs-node/xml.js                        |    22 +
 apps/fauxton/Gruntfile.js                       |   441 +
 apps/fauxton/TODO.md                            |    26 +
 .../activetasks/assets/less/activetasks.less    |    18 +
 apps/fauxton/app/addons/activetasks/base.js     |    26 +
 .../fauxton/app/addons/activetasks/resources.js |   118 +
 apps/fauxton/app/addons/activetasks/routes.js   |    58 +
 .../addons/activetasks/templates/detail.html    |    21 +
 .../app/addons/activetasks/templates/table.html |    52 +
 .../activetasks/templates/tabledetail.html      |    36 +
 .../app/addons/activetasks/templates/tabs.html  |    46 +
 .../app/addons/activetasks/tests/viewsSpec.js   |   139 +
 apps/fauxton/app/addons/activetasks/views.js    |   181 +
 .../app/addons/auth/assets/less/auth.less       |    15 +
 apps/fauxton/app/addons/auth/base.js            |    69 +
 apps/fauxton/app/addons/auth/resources.js       |   364 +
 apps/fauxton/app/addons/auth/routes.js          |    93 +
 .../addons/auth/templates/change_password.html  |    26 +
 .../app/addons/auth/templates/create_admin.html |    37 +
 .../app/addons/auth/templates/login.html        |    26 +
 .../app/addons/auth/templates/nav_dropdown.html |    26 +
 .../addons/auth/templates/nav_link_title.html   |    31 +
 .../app/addons/auth/templates/noAccess.html     |    20 +
 .../compaction/assets/less/compaction.less      |    19 +
 apps/fauxton/app/addons/compaction/base.js      |    31 +
 apps/fauxton/app/addons/compaction/resources.js |    48 +
 apps/fauxton/app/addons/compaction/routes.js    |    65 +
 .../compaction/templates/compact_view.html      |    14 +
 .../app/addons/compaction/templates/layout.html |    28 +
 apps/fauxton/app/addons/compaction/views.js     |   140 +
 .../app/addons/config/assets/less/config.less   |    13 +
 apps/fauxton/app/addons/config/base.js          |    28 +
 apps/fauxton/app/addons/config/resources.js     |   176 +
 apps/fauxton/app/addons/config/routes.js        |    59 +
 .../app/addons/config/templates/dashboard.html  |    52 +
 .../app/addons/config/templates/item.html       |    31 +
 apps/fauxton/app/addons/contribute/base.js      |    33 +
 apps/fauxton/app/addons/exampleAuth/base.js     |    59 +
 .../addons/exampleAuth/templates/noAccess.html  |    19 +
 apps/fauxton/app/addons/logs/base.js            |    28 +
 apps/fauxton/app/addons/logs/resources.js       |   225 +
 apps/fauxton/app/addons/logs/routes.js          |    58 +
 .../app/addons/logs/templates/dashboard.html    |    46 +
 .../app/addons/logs/templates/filterItem.html   |    16 +
 .../app/addons/logs/templates/sidebar.html      |    27 +
 apps/fauxton/app/addons/logs/tests/logSpec.js   |    38 +
 .../permissions/assets/less/permissions.less    |    44 +
 apps/fauxton/app/addons/permissions/base.js     |    25 +
 .../fauxton/app/addons/permissions/resources.js |    70 +
 apps/fauxton/app/addons/permissions/routes.js   |    63 +
 .../app/addons/permissions/templates/item.html  |    17 +
 .../permissions/templates/permissions.html      |    15 +
 .../addons/permissions/templates/section.html   |    46 +
 .../addons/permissions/tests/resourceSpec.js    |    51 +
 .../app/addons/permissions/tests/viewsSpec.js   |   159 +
 apps/fauxton/app/addons/permissions/views.js    |   200 +
 apps/fauxton/app/addons/plugins/base.js         |    24 +
 apps/fauxton/app/addons/plugins/resources.js    |    26 +
 apps/fauxton/app/addons/plugins/routes.js       |    47 +
 .../app/addons/plugins/templates/plugins.html   |   102 +
 .../replication/assets/less/replication.less    |   196 +
 apps/fauxton/app/addons/replication/base.js     |    24 +
 .../fauxton/app/addons/replication/resources.js |    69 +
 apps/fauxton/app/addons/replication/route.js    |    50 +
 .../app/addons/replication/templates/form.html  |    74 +
 .../addons/replication/templates/progress.html  |    22 +
 .../addons/replication/tests/replicationSpec.js |    28 +
 apps/fauxton/app/addons/replication/views.js    |   295 +
 .../app/addons/stats/assets/less/stats.less     |    19 +
 apps/fauxton/app/addons/stats/base.js           |    26 +
 apps/fauxton/app/addons/stats/resources.js      |    38 +
 apps/fauxton/app/addons/stats/routes.js         |    63 +
 .../app/addons/stats/templates/by_method.html   |    16 +
 .../app/addons/stats/templates/pie_table.html   |    54 +
 .../app/addons/stats/templates/stats.html       |    16 +
 .../app/addons/stats/templates/statselect.html  |    22 +
 apps/fauxton/app/addons/stats/views.js          |   171 +
 .../assets/less/verifyinstall.less              |    16 +
 apps/fauxton/app/addons/verifyinstall/base.js   |    31 +
 .../app/addons/verifyinstall/resources.js       |   181 +
 apps/fauxton/app/addons/verifyinstall/routes.js |    37 +
 .../addons/verifyinstall/templates/main.html    |    50 +
 apps/fauxton/app/addons/verifyinstall/views.js  |   127 +
 apps/fauxton/app/api.js                         |   558 +
 apps/fauxton/app/app.js                         |   122 +
 apps/fauxton/app/config.js                      |    60 +
 apps/fauxton/app/helpers.js                     |    78 +
 apps/fauxton/app/initialize.js.underscore       |    33 +
 apps/fauxton/app/load_addons.js.underscore      |    27 +
 apps/fauxton/app/main.js                        |    48 +
 apps/fauxton/app/mixins.js                      |    65 +
 apps/fauxton/app/modules/databases/base.js      |    37 +
 apps/fauxton/app/modules/databases/resources.js |   193 +
 apps/fauxton/app/modules/databases/routes.js    |    69 +
 apps/fauxton/app/modules/databases/views.js     |   255 +
 apps/fauxton/app/modules/documents/base.js      |    24 +
 apps/fauxton/app/modules/documents/resources.js |   638 +
 apps/fauxton/app/modules/documents/routes.js    |   408 +
 .../modules/documents/tests/resourcesSpec.js    |    84 +
 apps/fauxton/app/modules/documents/views.js     |  1805 ++
 apps/fauxton/app/modules/fauxton/base.js        |   276 +
 apps/fauxton/app/modules/fauxton/components.js  |   316 +
 apps/fauxton/app/modules/fauxton/layout.js      |    98 +
 apps/fauxton/app/modules/pouchdb/base.js        |    47 +
 .../app/modules/pouchdb/pouch.collate.js        |   115 +
 .../app/modules/pouchdb/pouchdb.mapreduce.js    |   324 +
 apps/fauxton/app/resizeColumns.js               |    87 +
 apps/fauxton/app/router.js                      |   175 +
 apps/fauxton/app/templates/databases/item.html  |    24 +
 apps/fauxton/app/templates/databases/list.html  |    35 +
 .../app/templates/databases/newdatabase.html    |    17 +
 .../app/templates/databases/sidebar.html        |    31 +
 .../templates/documents/advanced_options.html   |    97 +
 .../app/templates/documents/all_docs_item.html  |    26 +
 .../templates/documents/all_docs_layout.html    |    20 +
 .../app/templates/documents/all_docs_list.html  |    43 +
 .../templates/documents/all_docs_number.html    |    21 +
 .../app/templates/documents/changes.html        |    38 +
 .../app/templates/documents/ddoc_info.html      |    28 +
 .../documents/design_doc_selector.html          |    35 +
 apps/fauxton/app/templates/documents/doc.html   |    55 +
 .../templates/documents/doc_field_editor.html   |    74 +
 .../documents/doc_field_editor_tabs.html        |    19 +
 .../documents/duplicate_doc_modal.html          |    36 +
 .../app/templates/documents/edit_tools.html     |    44 +
 .../templates/documents/index_menu_item.html    |    17 +
 .../templates/documents/index_row_docular.html  |    26 +
 .../templates/documents/index_row_tabular.html  |    25 +
 .../app/templates/documents/jumpdoc.html        |    19 +
 .../fauxton/app/templates/documents/search.html |    15 +
 .../app/templates/documents/sidebar.html        |    67 +
 apps/fauxton/app/templates/documents/tabs.html  |    18 +
 .../app/templates/documents/upload_modal.html   |    42 +
 .../app/templates/documents/view_editor.html    |    87 +
 apps/fauxton/app/templates/fauxton/api_bar.html |    30 +
 .../app/templates/fauxton/breadcrumbs.html      |    24 +
 apps/fauxton/app/templates/fauxton/footer.html  |    15 +
 .../app/templates/fauxton/index_pagination.html |    24 +
 apps/fauxton/app/templates/fauxton/nav_bar.html |    75 +
 .../app/templates/fauxton/notification.html     |    18 +
 .../app/templates/fauxton/pagination.html       |    31 +
 .../fauxton/app/templates/layouts/one_pane.html |    28 +
 .../app/templates/layouts/one_pane_notabs.html  |    27 +
 .../fauxton/app/templates/layouts/two_pane.html |    30 +
 .../templates/layouts/with_right_sidebar.html   |    26 +
 .../app/templates/layouts/with_sidebar.html     |    27 +
 .../app/templates/layouts/with_tabs.html        |    28 +
 .../templates/layouts/with_tabs_sidebar.html    |    41 +
 apps/fauxton/assets/css/nv.d3.css               |   656 +
 apps/fauxton/assets/img/FontAwesome.otf         |   Bin 0 -> 61896 bytes
 apps/fauxton/assets/img/couchdb-site.png        |   Bin 0 -> 4946 bytes
 apps/fauxton/assets/img/couchdblogo.png         |   Bin 0 -> 2738 bytes
 apps/fauxton/assets/img/fontawesome-webfont.eot |   Bin 0 -> 37405 bytes
 apps/fauxton/assets/img/fontawesome-webfont.svg |   399 +
 apps/fauxton/assets/img/fontawesome-webfont.ttf |   Bin 0 -> 79076 bytes
 .../fauxton/assets/img/fontawesome-webfont.woff |   Bin 0 -> 43572 bytes
 apps/fauxton/assets/img/fontcustom_fauxton.eot  |   Bin 0 -> 7364 bytes
 apps/fauxton/assets/img/fontcustom_fauxton.svg  |   200 +
 apps/fauxton/assets/img/fontcustom_fauxton.ttf  |   Bin 0 -> 9636 bytes
 apps/fauxton/assets/img/fontcustom_fauxton.woff |   Bin 0 -> 4816 bytes
 .../assets/img/glyphicons-halflings-white.png   |   Bin 0 -> 8777 bytes
 .../fauxton/assets/img/glyphicons-halflings.png |   Bin 0 -> 13826 bytes
 apps/fauxton/assets/img/linen.png               |   Bin 0 -> 87134 bytes
 apps/fauxton/assets/img/loader.gif              |   Bin 0 -> 5193 bytes
 apps/fauxton/assets/img/minilogo.png            |   Bin 0 -> 2927 bytes
 apps/fauxton/assets/index.underscore            |    47 +
 apps/fauxton/assets/js/libs/ace/ace.js          | 16541 +++++++++++++++++
 .../fauxton/assets/js/libs/ace/ext-chromevox.js |   537 +
 .../js/libs/ace/ext-elastic_tabstops_lite.js    |   301 +
 apps/fauxton/assets/js/libs/ace/ext-emmet.js    |  1096 ++
 .../assets/js/libs/ace/ext-keybinding_menu.js   |   207 +
 .../assets/js/libs/ace/ext-language_tools.js    |  1615 ++
 apps/fauxton/assets/js/libs/ace/ext-modelist.js |   166 +
 apps/fauxton/assets/js/libs/ace/ext-old_ie.js   |   499 +
 apps/fauxton/assets/js/libs/ace/ext-options.js  |   252 +
 .../fauxton/assets/js/libs/ace/ext-searchbox.js |   420 +
 .../assets/js/libs/ace/ext-settings_menu.js     |   634 +
 .../assets/js/libs/ace/ext-spellcheck.js        |    68 +
 apps/fauxton/assets/js/libs/ace/ext-split.js    |   271 +
 .../assets/js/libs/ace/ext-static_highlight.js  |   165 +
 .../fauxton/assets/js/libs/ace/ext-statusbar.js |    47 +
 apps/fauxton/assets/js/libs/ace/ext-textarea.js |   478 +
 .../fauxton/assets/js/libs/ace/ext-themelist.js |    90 +
 .../assets/js/libs/ace/ext-whitespace.js        |   206 +
 .../assets/js/libs/ace/mode-javascript.js       |   886 +
 apps/fauxton/assets/js/libs/ace/mode-json.js    |   578 +
 apps/fauxton/assets/js/libs/ace/mode-jsoniq.js  |  2714 +++
 .../assets/js/libs/ace/snippets/javascript.js   |   202 +
 .../fauxton/assets/js/libs/ace/snippets/json.js |     7 +
 .../assets/js/libs/ace/snippets/jsoniq.js       |     7 +
 .../assets/js/libs/ace/theme-crimson_editor.js  |   148 +
 .../assets/js/libs/ace/worker-javascript.js     | 10088 ++++++++++
 apps/fauxton/assets/js/libs/ace/worker-json.js  |  2271 +++
 apps/fauxton/assets/js/libs/almond.js           |   314 +
 apps/fauxton/assets/js/libs/backbone.js         |  1571 ++
 apps/fauxton/assets/js/libs/bootstrap.js        |  2291 +++
 apps/fauxton/assets/js/libs/d3.js               |  7026 +++++++
 apps/fauxton/assets/js/libs/jquery.js           |  9789 ++++++++++
 apps/fauxton/assets/js/libs/lodash.js           |  4493 +++++
 apps/fauxton/assets/js/libs/nv.d3.js            | 13119 +++++++++++++
 apps/fauxton/assets/js/libs/require.js          |  2045 ++
 apps/fauxton/assets/js/libs/spin.min.js         |     1 +
 .../assets/js/plugins/backbone.layoutmanager.js |   996 +
 apps/fauxton/assets/js/plugins/jquery.form.js   |  1190 ++
 apps/fauxton/assets/js/plugins/prettify.js      |    28 +
 .../assets/less/bootstrap/accordion.less        |    34 +
 apps/fauxton/assets/less/bootstrap/alerts.less  |    79 +
 .../assets/less/bootstrap/bootstrap.less        |    63 +
 .../assets/less/bootstrap/breadcrumbs.less      |    24 +
 .../assets/less/bootstrap/button-groups.less    |   229 +
 apps/fauxton/assets/less/bootstrap/buttons.less |   228 +
 .../fauxton/assets/less/bootstrap/carousel.less |   158 +
 apps/fauxton/assets/less/bootstrap/close.less   |    32 +
 apps/fauxton/assets/less/bootstrap/code.less    |    61 +
 .../less/bootstrap/component-animations.less    |    22 +
 .../assets/less/bootstrap/dropdowns.less        |   248 +
 .../less/bootstrap/font-awesome/bootstrap.less  |    84 +
 .../less/bootstrap/font-awesome/core.less       |   129 +
 .../less/bootstrap/font-awesome/extras.less     |    93 +
 .../font-awesome/font-awesome-ie7.less          |  1953 ++
 .../bootstrap/font-awesome/font-awesome.less    |    33 +
 .../less/bootstrap/font-awesome/icons.less      |   381 +
 .../less/bootstrap/font-awesome/mixins.less     |    48 +
 .../less/bootstrap/font-awesome/path.less       |    14 +
 .../less/bootstrap/font-awesome/variables.less  |   735 +
 apps/fauxton/assets/less/bootstrap/forms.less   |   690 +
 apps/fauxton/assets/less/bootstrap/grid.less    |    21 +
 .../assets/less/bootstrap/hero-unit.less        |    25 +
 .../assets/less/bootstrap/labels-badges.less    |    84 +
 apps/fauxton/assets/less/bootstrap/layouts.less |    16 +
 apps/fauxton/assets/less/bootstrap/media.less   |    55 +
 apps/fauxton/assets/less/bootstrap/mixins.less  |   716 +
 apps/fauxton/assets/less/bootstrap/modals.less  |    95 +
 apps/fauxton/assets/less/bootstrap/navbar.less  |   497 +
 apps/fauxton/assets/less/bootstrap/navs.less    |   409 +
 apps/fauxton/assets/less/bootstrap/pager.less   |    43 +
 .../assets/less/bootstrap/pagination.less       |   123 +
 .../fauxton/assets/less/bootstrap/popovers.less |   133 +
 .../assets/less/bootstrap/progress-bars.less    |   122 +
 apps/fauxton/assets/less/bootstrap/reset.less   |   216 +
 .../less/bootstrap/responsive-1200px-min.less   |    28 +
 .../less/bootstrap/responsive-767px-max.less    |   193 +
 .../less/bootstrap/responsive-768px-979px.less  |    19 +
 .../less/bootstrap/responsive-navbar.less       |   189 +
 .../less/bootstrap/responsive-utilities.less    |    59 +
 .../assets/less/bootstrap/responsive.less       |    48 +
 .../assets/less/bootstrap/scaffolding.less      |    53 +
 apps/fauxton/assets/less/bootstrap/sprites.less |   197 +
 apps/fauxton/assets/less/bootstrap/tables.less  |   244 +
 .../assets/less/bootstrap/tests/buttons.html    |   139 +
 .../assets/less/bootstrap/tests/css-tests.css   |   150 +
 .../assets/less/bootstrap/thumbnails.less       |    53 +
 apps/fauxton/assets/less/bootstrap/tooltip.less |    70 +
 apps/fauxton/assets/less/bootstrap/type.less    |   247 +
 .../assets/less/bootstrap/utilities.less        |    30 +
 .../assets/less/bootstrap/variables.less        |   301 +
 apps/fauxton/assets/less/bootstrap/wells.less   |    29 +
 apps/fauxton/assets/less/config.less            |    46 +
 apps/fauxton/assets/less/couchdb.less           |    72 +
 apps/fauxton/assets/less/database.less          |   245 +
 apps/fauxton/assets/less/fauxton.less           |  1009 +
 apps/fauxton/assets/less/icons.less             |   111 +
 apps/fauxton/assets/less/logs.less              |    24 +
 apps/fauxton/assets/less/prettyprint.less       |    46 +
 apps/fauxton/assets/less/variables.less         |    82 +
 apps/fauxton/bin/grunt                          |    18 +
 apps/fauxton/couchapp.js                        |    39 +
 apps/fauxton/extensions.md                      |    17 +
 apps/fauxton/favicon.ico                        |   Bin 0 -> 1150 bytes
 apps/fauxton/index.html                         |    53 +
 apps/fauxton/package.json                       |    48 +
 apps/fauxton/readme.md                          |    79 +
 apps/fauxton/settings.json.default              |    55 +
 apps/fauxton/settings.json.sample_external      |    10 +
 apps/fauxton/tasks/addon/rename.json            |     5 +
 .../fauxton/tasks/addon/root/base.js.underscore |    21 +
 .../tasks/addon/root/resources.js.underscore    |    21 +
 .../tasks/addon/root/routes.js.underscore       |    42 +
 apps/fauxton/tasks/addon/template.js            |    70 +
 apps/fauxton/tasks/couchserver.js               |   104 +
 apps/fauxton/tasks/fauxton.js                   |   137 +
 apps/fauxton/tasks/helper.js                    |    45 +
 apps/fauxton/test/core/layoutSpec.js            |    94 +
 apps/fauxton/test/core/navbarSpec.js            |   107 +
 apps/fauxton/test/core/paginateSpec.js          |   109 +
 apps/fauxton/test/core/routeObjectSpec.js       |   105 +
 apps/fauxton/test/mocha/chai.js                 |  4330 +++++
 apps/fauxton/test/mocha/mocha.css               |   251 +
 apps/fauxton/test/mocha/mocha.js                |  5428 ++++++
 apps/fauxton/test/mocha/sinon-chai.js           |   109 +
 apps/fauxton/test/mocha/sinon.js                |  4290 +++++
 apps/fauxton/test/mocha/testUtils.js            |    50 +
 apps/fauxton/test/runner.html                   |    33 +
 apps/fauxton/test/test.config.underscore        |    15 +
 apps/fauxton/writing_addons.md                  |   173 +
 bootstrap                                       |    91 +-
 examples/my-first-couchdb-plugin/.gitignore     |     1 +
 examples/my-first-couchdb-plugin/Makefile       |    38 +
 examples/my-first-couchdb-plugin/README.md      |   196 +
 .../priv/default.d/my_first_couchdb_plugin.ini  |     0
 .../src/my_first_couchdb_plugin.app.src         |    21 +
 .../src/my_first_couchdb_plugin.erl             |    18 +
 .../test/my_first_couchdb_plugin_tests.erl      |    15 +
 rebar.config                                    |    40 +
 src/Makefile.am                                 |   315 -
 src/couch_collate/c_src/couch_collate.c         |   281 -
 src/couch_collate/rebar.config                  |     9 -
 src/couch_collate/rebar.config.script           |    46 -
 src/couch_collate/src/couch_collate.app.src     |    13 -
 src/couch_collate/src/couch_collate.erl         |    62 -
 src/couch_dbupdates/Makefile.am                 |    33 -
 src/couch_dbupdates/src/couch_dbupdates.app.src |    11 -
 src/couch_dbupdates/src/couch_dbupdates.erl     |    46 -
 .../src/couch_dbupdates_httpd.erl               |    69 -
 src/couch_index/Makefile.am                     |    40 -
 src/couch_index/src/couch_index.app.src         |    22 -
 src/couch_index/src/couch_index.erl             |   340 -
 src/couch_index/src/couch_index_api.erl         |    54 -
 src/couch_index/src/couch_index_compactor.erl   |   114 -
 src/couch_index/src/couch_index_server.erl      |   201 -
 src/couch_index/src/couch_index_updater.erl     |   200 -
 src/couch_index/src/couch_index_util.erl        |    78 -
 src/couch_mrview/Makefile.am                    |    73 -
 src/couch_mrview/include/couch_mrview.hrl       |    81 -
 src/couch_mrview/src/couch_mrview.app.src       |    28 -
 src/couch_mrview/src/couch_mrview.erl           |   387 -
 src/couch_mrview/src/couch_mrview_cleanup.erl   |    47 -
 src/couch_mrview/src/couch_mrview_compactor.erl |   178 -
 src/couch_mrview/src/couch_mrview_http.erl      |   410 -
 src/couch_mrview/src/couch_mrview_index.erl     |   162 -
 src/couch_mrview/src/couch_mrview_show.erl      |   368 -
 src/couch_mrview/src/couch_mrview_test_util.erl |    91 -
 src/couch_mrview/src/couch_mrview_updater.erl   |   282 -
 src/couch_mrview/src/couch_mrview_util.erl      |   802 -
 src/couch_mrview/test/01-load.t                 |    34 -
 src/couch_mrview/test/02-map-views.t            |   131 -
 src/couch_mrview/test/03-red-views.t            |    78 -
 src/couch_mrview/test/04-index-info.t           |    54 -
 src/couch_mrview/test/05-collation.t            |   163 -
 src/couch_mrview/test/06-all-docs.t             |   127 -
 src/couch_mrview/test/07-compact-swap.t         |    57 -
 src/couch_plugins/Makefile.am                   |    40 -
 src/couch_plugins/README.md                     |   159 -
 src/couch_plugins/src/couch_plugins.app.src     |    23 -
 src/couch_plugins/src/couch_plugins.erl         |   300 -
 src/couch_plugins/src/couch_plugins_httpd.erl   |    65 -
 src/couch_replicator/Makefile.am                |    78 -
 .../src/couch_replicator.app.src                |    33 -
 src/couch_replicator/src/couch_replicator.erl   |   965 -
 src/couch_replicator/src/couch_replicator.hrl   |    30 -
 .../src/couch_replicator_api_wrap.erl           |   877 -
 .../src/couch_replicator_api_wrap.hrl           |    36 -
 .../src/couch_replicator_httpc.erl              |   297 -
 .../src/couch_replicator_httpc_pool.erl         |   138 -
 .../src/couch_replicator_httpd.erl              |    66 -
 .../src/couch_replicator_job_sup.erl            |    31 -
 .../src/couch_replicator_js_functions.hrl       |   151 -
 .../src/couch_replicator_manager.erl            |   709 -
 .../src/couch_replicator_notifier.erl           |    57 -
 .../src/couch_replicator_utils.erl              |   396 -
 .../src/couch_replicator_worker.erl             |   515 -
 src/couch_replicator/test/01-load.t             |    37 -
 src/couch_replicator/test/02-httpc-pool.t       |   250 -
 .../test/03-replication-compact.t               |   488 -
 .../test/04-replication-large-atts.t            |   267 -
 .../test/05-replication-many-leaves.t           |   294 -
 .../test/06-doc-missing-stubs.t                 |   304 -
 src/couch_replicator/test/07-use-checkpoints.t  |   256 -
 src/couchdb/Makefile.am                         |   198 -
 src/couchdb/couch.app.tpl.in                    |    27 -
 src/couchdb/couch.erl                           |    39 -
 src/couchdb/couch_app.erl                       |    56 -
 src/couchdb/couch_auth_cache.erl                |   425 -
 src/couchdb/couch_btree.erl                     |   714 -
 src/couchdb/couch_changes.erl                   |   577 -
 src/couchdb/couch_compaction_daemon.erl         |   504 -
 src/couchdb/couch_compress.erl                  |    84 -
 src/couchdb/couch_config.erl                    |   251 -
 src/couchdb/couch_config_writer.erl             |    88 -
 src/couchdb/couch_db.erl                        |  1358 --
 src/couchdb/couch_db.hrl                        |   286 -
 src/couchdb/couch_db_update_notifier.erl        |    82 -
 src/couchdb/couch_db_update_notifier_sup.erl    |    61 -
 src/couchdb/couch_db_updater.erl                |  1035 --
 src/couchdb/couch_doc.erl                       |   650 -
 src/couchdb/couch_drv.erl                       |    62 -
 src/couchdb/couch_ejson_compare.erl             |   113 -
 src/couchdb/couch_event_sup.erl                 |    73 -
 src/couchdb/couch_external_manager.erl          |   101 -
 src/couchdb/couch_external_server.erl           |    70 -
 src/couchdb/couch_file.erl                      |   532 -
 src/couchdb/couch_httpd.erl                     |  1114 --
 src/couchdb/couch_httpd_auth.erl                |   380 -
 src/couchdb/couch_httpd_cors.erl                |   351 -
 src/couchdb/couch_httpd_db.erl                  |  1226 --
 src/couchdb/couch_httpd_external.erl            |   177 -
 src/couchdb/couch_httpd_misc_handlers.erl       |   318 -
 src/couchdb/couch_httpd_oauth.erl               |   387 -
 src/couchdb/couch_httpd_proxy.erl               |   426 -
 src/couchdb/couch_httpd_rewrite.erl             |   484 -
 src/couchdb/couch_httpd_stats_handlers.erl      |    56 -
 src/couchdb/couch_httpd_vhost.erl               |   383 -
 src/couchdb/couch_js_functions.hrl              |   170 -
 src/couchdb/couch_key_tree.erl                  |   422 -
 src/couchdb/couch_log.erl                       |   254 -
 src/couchdb/couch_native_process.erl            |   409 -
 src/couchdb/couch_os_daemons.erl                |   374 -
 src/couchdb/couch_os_process.erl                |   216 -
 src/couchdb/couch_passwords.erl                 |   119 -
 src/couchdb/couch_primary_sup.erl               |    66 -
 src/couchdb/couch_query_servers.erl             |   616 -
 src/couchdb/couch_ref_counter.erl               |   111 -
 src/couchdb/couch_secondary_sup.erl             |    49 -
 src/couchdb/couch_server.erl                    |   499 -
 src/couchdb/couch_server_sup.erl                |   164 -
 src/couchdb/couch_stats_aggregator.erl          |   297 -
 src/couchdb/couch_stats_collector.erl           |   136 -
 src/couchdb/couch_stream.erl                    |   299 -
 src/couchdb/couch_task_status.erl               |   151 -
 src/couchdb/couch_users_db.erl                  |   121 -
 src/couchdb/couch_util.erl                      |   489 -
 src/couchdb/couch_uuids.erl                     |   103 -
 src/couchdb/couch_work_queue.erl                |   187 -
 src/couchdb/json_stream_parse.erl               |   432 -
 src/couchdb/priv/Makefile.am                    |   151 -
 .../couch_ejson_compare/couch_ejson_compare.c   |   457 -
 .../priv/couch_ejson_compare/erl_nif_compat.h   |   128 -
 src/couchdb/priv/couch_js/help.h                |    82 -
 src/couchdb/priv/couch_js/http.c                |   698 -
 src/couchdb/priv/couch_js/http.h                |    27 -
 src/couchdb/priv/couch_js/main.c                |    21 -
 src/couchdb/priv/couch_js/sm170.c               |   398 -
 src/couchdb/priv/couch_js/sm180.c               |   407 -
 src/couchdb/priv/couch_js/sm185.c               |   431 -
 src/couchdb/priv/couch_js/utf8.c                |   294 -
 src/couchdb/priv/couch_js/utf8.h                |    19 -
 src/couchdb/priv/couch_js/util.c                |   294 -
 src/couchdb/priv/couch_js/util.h                |    35 -
 src/couchdb/priv/icu_driver/couch_icu_driver.c  |   189 -
 .../priv/spawnkillable/couchspawnkillable.sh    |    20 -
 .../priv/spawnkillable/couchspawnkillable_win.c |   145 -
 src/couchdb/priv/stat_descriptions.cfg.in       |    50 -
 src/couchjs-node/Makefile.am                    |    24 -
 src/couchjs-node/README.md                      |    32 -
 src/couchjs-node/cli.js                         |    89 -
 src/couchjs-node/console.js                     |    66 -
 src/couchjs-node/couchdb.js                     |    29 -
 src/couchjs-node/couchjs.js                     |   133 -
 src/couchjs-node/inspector.js                   |   101 -
 src/couchjs-node/package.json                   |    40 -
 src/couchjs-node/sandbox.js                     |    47 -
 src/couchjs-node/stream.js                      |   115 -
 src/couchjs-node/test/experiment.js             |   125 -
 src/couchjs-node/xml.js                         |    22 -
 src/ejson/Makefile.am                           |    89 -
 src/ejson/decode.c                              |   308 -
 src/ejson/ejson.app.in                          |     9 -
 src/ejson/ejson.c                               |    30 -
 src/ejson/ejson.erl                             |   168 -
 src/ejson/encode.c                              |   200 -
 src/ejson/erl_nif_compat.h                      |   120 -
 src/ejson/mochijson2.erl                        |   849 -
 src/ejson/mochinum.erl                          |   354 -
 src/ejson/yajl/yajl.c                           |   159 -
 src/ejson/yajl/yajl_alloc.c                     |    65 -
 src/ejson/yajl/yajl_alloc.h                     |    50 -
 src/ejson/yajl/yajl_buf.c                       |   119 -
 src/ejson/yajl/yajl_buf.h                       |    73 -
 src/ejson/yajl/yajl_bytestack.h                 |    85 -
 src/ejson/yajl/yajl_common.h                    |    85 -
 src/ejson/yajl/yajl_encode.c                    |   195 -
 src/ejson/yajl/yajl_encode.h                    |    50 -
 src/ejson/yajl/yajl_gen.c                       |   322 -
 src/ejson/yajl/yajl_gen.h                       |   159 -
 src/ejson/yajl/yajl_lex.c                       |   737 -
 src/ejson/yajl/yajl_lex.h                       |   133 -
 src/ejson/yajl/yajl_parse.h                     |   193 -
 src/ejson/yajl/yajl_parser.c                    |   470 -
 src/ejson/yajl/yajl_parser.h                    |    95 -
 src/erlang-oauth/Makefile.am                    |    39 -
 src/erlang-oauth/oauth.app.in                   |    20 -
 src/erlang-oauth/oauth.erl                      |   315 -
 src/etap/Makefile.am                            |    28 -
 src/etap/etap.erl                               |   614 -
 src/fauxton/Gruntfile.js                        |   441 -
 src/fauxton/TODO.md                             |    26 -
 .../activetasks/assets/less/activetasks.less    |    18 -
 src/fauxton/app/addons/activetasks/base.js      |    26 -
 src/fauxton/app/addons/activetasks/resources.js |   118 -
 src/fauxton/app/addons/activetasks/routes.js    |    58 -
 .../addons/activetasks/templates/detail.html    |    21 -
 .../app/addons/activetasks/templates/table.html |    52 -
 .../activetasks/templates/tabledetail.html      |    36 -
 .../app/addons/activetasks/templates/tabs.html  |    46 -
 .../app/addons/activetasks/tests/viewsSpec.js   |   139 -
 src/fauxton/app/addons/activetasks/views.js     |   181 -
 .../app/addons/auth/assets/less/auth.less       |    15 -
 src/fauxton/app/addons/auth/base.js             |    69 -
 src/fauxton/app/addons/auth/resources.js        |   364 -
 src/fauxton/app/addons/auth/routes.js           |    93 -
 .../addons/auth/templates/change_password.html  |    26 -
 .../app/addons/auth/templates/create_admin.html |    37 -
 .../app/addons/auth/templates/login.html        |    26 -
 .../app/addons/auth/templates/nav_dropdown.html |    26 -
 .../addons/auth/templates/nav_link_title.html   |    31 -
 .../app/addons/auth/templates/noAccess.html     |    20 -
 .../compaction/assets/less/compaction.less      |    19 -
 src/fauxton/app/addons/compaction/base.js       |    31 -
 src/fauxton/app/addons/compaction/resources.js  |    48 -
 src/fauxton/app/addons/compaction/routes.js     |    65 -
 .../compaction/templates/compact_view.html      |    14 -
 .../app/addons/compaction/templates/layout.html |    28 -
 src/fauxton/app/addons/compaction/views.js      |   140 -
 .../app/addons/config/assets/less/config.less   |    13 -
 src/fauxton/app/addons/config/base.js           |    28 -
 src/fauxton/app/addons/config/resources.js      |   176 -
 src/fauxton/app/addons/config/routes.js         |    59 -
 .../app/addons/config/templates/dashboard.html  |    52 -
 .../app/addons/config/templates/item.html       |    31 -
 src/fauxton/app/addons/contribute/base.js       |    33 -
 src/fauxton/app/addons/exampleAuth/base.js      |    59 -
 .../addons/exampleAuth/templates/noAccess.html  |    19 -
 src/fauxton/app/addons/logs/base.js             |    28 -
 src/fauxton/app/addons/logs/resources.js        |   225 -
 src/fauxton/app/addons/logs/routes.js           |    58 -
 .../app/addons/logs/templates/dashboard.html    |    46 -
 .../app/addons/logs/templates/filterItem.html   |    16 -
 .../app/addons/logs/templates/sidebar.html      |    27 -
 src/fauxton/app/addons/logs/tests/logSpec.js    |    38 -
 .../permissions/assets/less/permissions.less    |    44 -
 src/fauxton/app/addons/permissions/base.js      |    25 -
 src/fauxton/app/addons/permissions/resources.js |    70 -
 src/fauxton/app/addons/permissions/routes.js    |    63 -
 .../app/addons/permissions/templates/item.html  |    17 -
 .../permissions/templates/permissions.html      |    15 -
 .../addons/permissions/templates/section.html   |    46 -
 .../addons/permissions/tests/resourceSpec.js    |    51 -
 .../app/addons/permissions/tests/viewsSpec.js   |   159 -
 src/fauxton/app/addons/permissions/views.js     |   200 -
 src/fauxton/app/addons/plugins/base.js          |    24 -
 src/fauxton/app/addons/plugins/resources.js     |    26 -
 src/fauxton/app/addons/plugins/routes.js        |    47 -
 .../app/addons/plugins/templates/plugins.html   |   102 -
 .../replication/assets/less/replication.less    |   196 -
 src/fauxton/app/addons/replication/base.js      |    24 -
 src/fauxton/app/addons/replication/resources.js |    69 -
 src/fauxton/app/addons/replication/route.js     |    50 -
 .../app/addons/replication/templates/form.html  |    74 -
 .../addons/replication/templates/progress.html  |    22 -
 .../addons/replication/tests/replicationSpec.js |    28 -
 src/fauxton/app/addons/replication/views.js     |   295 -
 .../app/addons/stats/assets/less/stats.less     |    19 -
 src/fauxton/app/addons/stats/base.js            |    26 -
 src/fauxton/app/addons/stats/resources.js       |    38 -
 src/fauxton/app/addons/stats/routes.js          |    63 -
 .../app/addons/stats/templates/by_method.html   |    16 -
 .../app/addons/stats/templates/pie_table.html   |    54 -
 .../app/addons/stats/templates/stats.html       |    16 -
 .../app/addons/stats/templates/statselect.html  |    22 -
 src/fauxton/app/addons/stats/views.js           |   171 -
 .../assets/less/verifyinstall.less              |    16 -
 src/fauxton/app/addons/verifyinstall/base.js    |    31 -
 .../app/addons/verifyinstall/resources.js       |   181 -
 src/fauxton/app/addons/verifyinstall/routes.js  |    37 -
 .../addons/verifyinstall/templates/main.html    |    50 -
 src/fauxton/app/addons/verifyinstall/views.js   |   127 -
 src/fauxton/app/api.js                          |   558 -
 src/fauxton/app/app.js                          |   122 -
 src/fauxton/app/config.js                       |    60 -
 src/fauxton/app/helpers.js                      |    78 -
 src/fauxton/app/initialize.js.underscore        |    33 -
 src/fauxton/app/load_addons.js.underscore       |    27 -
 src/fauxton/app/main.js                         |    48 -
 src/fauxton/app/mixins.js                       |    65 -
 src/fauxton/app/modules/databases/base.js       |    37 -
 src/fauxton/app/modules/databases/resources.js  |   193 -
 src/fauxton/app/modules/databases/routes.js     |    69 -
 src/fauxton/app/modules/databases/views.js      |   255 -
 src/fauxton/app/modules/documents/base.js       |    24 -
 src/fauxton/app/modules/documents/resources.js  |   638 -
 src/fauxton/app/modules/documents/routes.js     |   408 -
 .../modules/documents/tests/resourcesSpec.js    |    84 -
 src/fauxton/app/modules/documents/views.js      |  1805 --
 src/fauxton/app/modules/fauxton/base.js         |   276 -
 src/fauxton/app/modules/fauxton/components.js   |   316 -
 src/fauxton/app/modules/fauxton/layout.js       |    98 -
 src/fauxton/app/modules/pouchdb/base.js         |    47 -
 .../app/modules/pouchdb/pouch.collate.js        |   115 -
 .../app/modules/pouchdb/pouchdb.mapreduce.js    |   324 -
 src/fauxton/app/resizeColumns.js                |    87 -
 src/fauxton/app/router.js                       |   175 -
 src/fauxton/app/templates/databases/item.html   |    24 -
 src/fauxton/app/templates/databases/list.html   |    35 -
 .../app/templates/databases/newdatabase.html    |    17 -
 .../app/templates/databases/sidebar.html        |    31 -
 .../templates/documents/advanced_options.html   |    97 -
 .../app/templates/documents/all_docs_item.html  |    26 -
 .../templates/documents/all_docs_layout.html    |    20 -
 .../app/templates/documents/all_docs_list.html  |    43 -
 .../templates/documents/all_docs_number.html    |    21 -
 .../app/templates/documents/changes.html        |    38 -
 .../app/templates/documents/ddoc_info.html      |    28 -
 .../documents/design_doc_selector.html          |    35 -
 src/fauxton/app/templates/documents/doc.html    |    55 -
 .../templates/documents/doc_field_editor.html   |    74 -
 .../documents/doc_field_editor_tabs.html        |    19 -
 .../documents/duplicate_doc_modal.html          |    36 -
 .../app/templates/documents/edit_tools.html     |    44 -
 .../templates/documents/index_menu_item.html    |    17 -
 .../templates/documents/index_row_docular.html  |    26 -
 .../templates/documents/index_row_tabular.html  |    25 -
 .../app/templates/documents/jumpdoc.html        |    19 -
 src/fauxton/app/templates/documents/search.html |    15 -
 .../app/templates/documents/sidebar.html        |    67 -
 src/fauxton/app/templates/documents/tabs.html   |    18 -
 .../app/templates/documents/upload_modal.html   |    42 -
 .../app/templates/documents/view_editor.html    |    87 -
 src/fauxton/app/templates/fauxton/api_bar.html  |    30 -
 .../app/templates/fauxton/breadcrumbs.html      |    24 -
 src/fauxton/app/templates/fauxton/footer.html   |    15 -
 .../app/templates/fauxton/index_pagination.html |    24 -
 src/fauxton/app/templates/fauxton/nav_bar.html  |    75 -
 .../app/templates/fauxton/notification.html     |    18 -
 .../app/templates/fauxton/pagination.html       |    31 -
 src/fauxton/app/templates/layouts/one_pane.html |    28 -
 .../app/templates/layouts/one_pane_notabs.html  |    27 -
 src/fauxton/app/templates/layouts/two_pane.html |    30 -
 .../templates/layouts/with_right_sidebar.html   |    26 -
 .../app/templates/layouts/with_sidebar.html     |    27 -
 .../app/templates/layouts/with_tabs.html        |    28 -
 .../templates/layouts/with_tabs_sidebar.html    |    41 -
 src/fauxton/assets/css/nv.d3.css                |   656 -
 src/fauxton/assets/img/FontAwesome.otf          |   Bin 61896 -> 0 bytes
 src/fauxton/assets/img/couchdb-site.png         |   Bin 4946 -> 0 bytes
 src/fauxton/assets/img/couchdblogo.png          |   Bin 2738 -> 0 bytes
 src/fauxton/assets/img/fontawesome-webfont.eot  |   Bin 37405 -> 0 bytes
 src/fauxton/assets/img/fontawesome-webfont.svg  |   399 -
 src/fauxton/assets/img/fontawesome-webfont.ttf  |   Bin 79076 -> 0 bytes
 src/fauxton/assets/img/fontawesome-webfont.woff |   Bin 43572 -> 0 bytes
 src/fauxton/assets/img/fontcustom_fauxton.eot   |   Bin 7364 -> 0 bytes
 src/fauxton/assets/img/fontcustom_fauxton.svg   |   200 -
 src/fauxton/assets/img/fontcustom_fauxton.ttf   |   Bin 9636 -> 0 bytes
 src/fauxton/assets/img/fontcustom_fauxton.woff  |   Bin 4816 -> 0 bytes
 .../assets/img/glyphicons-halflings-white.png   |   Bin 8777 -> 0 bytes
 src/fauxton/assets/img/glyphicons-halflings.png |   Bin 13826 -> 0 bytes
 src/fauxton/assets/img/linen.png                |   Bin 87134 -> 0 bytes
 src/fauxton/assets/img/loader.gif               |   Bin 5193 -> 0 bytes
 src/fauxton/assets/img/minilogo.png             |   Bin 2927 -> 0 bytes
 src/fauxton/assets/index.underscore             |    47 -
 src/fauxton/assets/js/libs/ace/ace.js           | 16541 -----------------
 src/fauxton/assets/js/libs/ace/ext-chromevox.js |   537 -
 .../js/libs/ace/ext-elastic_tabstops_lite.js    |   301 -
 src/fauxton/assets/js/libs/ace/ext-emmet.js     |  1096 --
 .../assets/js/libs/ace/ext-keybinding_menu.js   |   207 -
 .../assets/js/libs/ace/ext-language_tools.js    |  1615 --
 src/fauxton/assets/js/libs/ace/ext-modelist.js  |   166 -
 src/fauxton/assets/js/libs/ace/ext-old_ie.js    |   499 -
 src/fauxton/assets/js/libs/ace/ext-options.js   |   252 -
 src/fauxton/assets/js/libs/ace/ext-searchbox.js |   420 -
 .../assets/js/libs/ace/ext-settings_menu.js     |   634 -
 .../assets/js/libs/ace/ext-spellcheck.js        |    68 -
 src/fauxton/assets/js/libs/ace/ext-split.js     |   271 -
 .../assets/js/libs/ace/ext-static_highlight.js  |   165 -
 src/fauxton/assets/js/libs/ace/ext-statusbar.js |    47 -
 src/fauxton/assets/js/libs/ace/ext-textarea.js  |   478 -
 src/fauxton/assets/js/libs/ace/ext-themelist.js |    90 -
 .../assets/js/libs/ace/ext-whitespace.js        |   206 -
 .../assets/js/libs/ace/mode-javascript.js       |   886 -
 src/fauxton/assets/js/libs/ace/mode-json.js     |   578 -
 src/fauxton/assets/js/libs/ace/mode-jsoniq.js   |  2714 ---
 .../assets/js/libs/ace/snippets/javascript.js   |   202 -
 src/fauxton/assets/js/libs/ace/snippets/json.js |     7 -
 .../assets/js/libs/ace/snippets/jsoniq.js       |     7 -
 .../assets/js/libs/ace/theme-crimson_editor.js  |   148 -
 .../assets/js/libs/ace/worker-javascript.js     | 10088 ----------
 src/fauxton/assets/js/libs/ace/worker-json.js   |  2271 ---
 src/fauxton/assets/js/libs/almond.js            |   314 -
 src/fauxton/assets/js/libs/backbone.js          |  1571 --
 src/fauxton/assets/js/libs/bootstrap.js         |  2291 ---
 src/fauxton/assets/js/libs/d3.js                |  7026 -------
 src/fauxton/assets/js/libs/jquery.js            |  9789 ----------
 src/fauxton/assets/js/libs/lodash.js            |  4493 -----
 src/fauxton/assets/js/libs/nv.d3.js             | 13119 -------------
 src/fauxton/assets/js/libs/require.js           |  2045 --
 src/fauxton/assets/js/libs/spin.min.js          |     1 -
 .../assets/js/plugins/backbone.layoutmanager.js |   996 -
 src/fauxton/assets/js/plugins/jquery.form.js    |  1190 --
 src/fauxton/assets/js/plugins/prettify.js       |    28 -
 .../assets/less/bootstrap/accordion.less        |    34 -
 src/fauxton/assets/less/bootstrap/alerts.less   |    79 -
 .../assets/less/bootstrap/bootstrap.less        |    63 -
 .../assets/less/bootstrap/breadcrumbs.less      |    24 -
 .../assets/less/bootstrap/button-groups.less    |   229 -
 src/fauxton/assets/less/bootstrap/buttons.less  |   228 -
 src/fauxton/assets/less/bootstrap/carousel.less |   158 -
 src/fauxton/assets/less/bootstrap/close.less    |    32 -
 src/fauxton/assets/less/bootstrap/code.less     |    61 -
 .../less/bootstrap/component-animations.less    |    22 -
 .../assets/less/bootstrap/dropdowns.less        |   248 -
 .../less/bootstrap/font-awesome/bootstrap.less  |    84 -
 .../less/bootstrap/font-awesome/core.less       |   129 -
 .../less/bootstrap/font-awesome/extras.less     |    93 -
 .../font-awesome/font-awesome-ie7.less          |  1953 --
 .../bootstrap/font-awesome/font-awesome.less    |    33 -
 .../less/bootstrap/font-awesome/icons.less      |   381 -
 .../less/bootstrap/font-awesome/mixins.less     |    48 -
 .../less/bootstrap/font-awesome/path.less       |    14 -
 .../less/bootstrap/font-awesome/variables.less  |   735 -
 src/fauxton/assets/less/bootstrap/forms.less    |   690 -
 src/fauxton/assets/less/bootstrap/grid.less     |    21 -
 .../assets/less/bootstrap/hero-unit.less        |    25 -
 .../assets/less/bootstrap/labels-badges.less    |    84 -
 src/fauxton/assets/less/bootstrap/layouts.less  |    16 -
 src/fauxton/assets/less/bootstrap/media.less    |    55 -
 src/fauxton/assets/less/bootstrap/mixins.less   |   716 -
 src/fauxton/assets/less/bootstrap/modals.less   |    95 -
 src/fauxton/assets/less/bootstrap/navbar.less   |   497 -
 src/fauxton/assets/less/bootstrap/navs.less     |   409 -
 src/fauxton/assets/less/bootstrap/pager.less    |    43 -
 .../assets/less/bootstrap/pagination.less       |   123 -
 src/fauxton/assets/less/bootstrap/popovers.less |   133 -
 .../assets/less/bootstrap/progress-bars.less    |   122 -
 src/fauxton/assets/less/bootstrap/reset.less    |   216 -
 .../less/bootstrap/responsive-1200px-min.less   |    28 -
 .../less/bootstrap/responsive-767px-max.less    |   193 -
 .../less/bootstrap/responsive-768px-979px.less  |    19 -
 .../less/bootstrap/responsive-navbar.less       |   189 -
 .../less/bootstrap/responsive-utilities.less    |    59 -
 .../assets/less/bootstrap/responsive.less       |    48 -
 .../assets/less/bootstrap/scaffolding.less      |    53 -
 src/fauxton/assets/less/bootstrap/sprites.less  |   197 -
 src/fauxton/assets/less/bootstrap/tables.less   |   244 -
 .../assets/less/bootstrap/tests/buttons.html    |   139 -
 .../assets/less/bootstrap/tests/css-tests.css   |   150 -
 .../assets/less/bootstrap/thumbnails.less       |    53 -
 src/fauxton/assets/less/bootstrap/tooltip.less  |    70 -
 src/fauxton/assets/less/bootstrap/type.less     |   247 -
 .../assets/less/bootstrap/utilities.less        |    30 -
 .../assets/less/bootstrap/variables.less        |   301 -
 src/fauxton/assets/less/bootstrap/wells.less    |    29 -
 src/fauxton/assets/less/config.less             |    46 -
 src/fauxton/assets/less/couchdb.less            |    72 -
 src/fauxton/assets/less/database.less           |   245 -
 src/fauxton/assets/less/fauxton.less            |  1009 -
 src/fauxton/assets/less/icons.less              |   111 -
 src/fauxton/assets/less/logs.less               |    24 -
 src/fauxton/assets/less/prettyprint.less        |    46 -
 src/fauxton/assets/less/variables.less          |    82 -
 src/fauxton/bin/grunt                           |    18 -
 src/fauxton/couchapp.js                         |    39 -
 src/fauxton/extensions.md                       |    17 -
 src/fauxton/favicon.ico                         |   Bin 1150 -> 0 bytes
 src/fauxton/index.html                          |    53 -
 src/fauxton/package.json                        |    48 -
 src/fauxton/readme.md                           |    79 -
 src/fauxton/settings.json.default               |    55 -
 src/fauxton/settings.json.sample_external       |    10 -
 src/fauxton/tasks/addon/rename.json             |     5 -
 src/fauxton/tasks/addon/root/base.js.underscore |    21 -
 .../tasks/addon/root/resources.js.underscore    |    21 -
 .../tasks/addon/root/routes.js.underscore       |    42 -
 src/fauxton/tasks/addon/template.js             |    70 -
 src/fauxton/tasks/couchserver.js                |   104 -
 src/fauxton/tasks/fauxton.js                    |   137 -
 src/fauxton/tasks/helper.js                     |    45 -
 src/fauxton/test/core/layoutSpec.js             |    94 -
 src/fauxton/test/core/navbarSpec.js             |   107 -
 src/fauxton/test/core/paginateSpec.js           |   109 -
 src/fauxton/test/core/routeObjectSpec.js        |   105 -
 src/fauxton/test/mocha/chai.js                  |  4330 -----
 src/fauxton/test/mocha/mocha.css                |   251 -
 src/fauxton/test/mocha/mocha.js                 |  5428 ------
 src/fauxton/test/mocha/sinon-chai.js            |   109 -
 src/fauxton/test/mocha/sinon.js                 |  4290 -----
 src/fauxton/test/mocha/testUtils.js             |    50 -
 src/fauxton/test/runner.html                    |    33 -
 src/fauxton/test/test.config.underscore         |    15 -
 src/fauxton/writing_addons.md                   |   173 -
 src/ibrowse/Makefile.am                         |    49 -
 src/ibrowse/ibrowse.app.in                      |     7 -
 src/ibrowse/ibrowse.erl                         |   929 -
 src/ibrowse/ibrowse.hrl                         |    21 -
 src/ibrowse/ibrowse_app.erl                     |    63 -
 src/ibrowse/ibrowse_http_client.erl             |  1921 --
 src/ibrowse/ibrowse_lb.erl                      |   252 -
 src/ibrowse/ibrowse_lib.erl                     |   441 -
 src/ibrowse/ibrowse_sup.erl                     |    63 -
 src/ibrowse/ibrowse_test.erl                    |   625 -
 src/mochiweb/Makefile.am                        |   109 -
 src/mochiweb/internal.hrl                       |     3 -
 src/mochiweb/mochifmt.erl                       |   425 -
 src/mochiweb/mochifmt_records.erl               |    42 -
 src/mochiweb/mochifmt_std.erl                   |    33 -
 src/mochiweb/mochiglobal.erl                    |   107 -
 src/mochiweb/mochihex.erl                       |    88 -
 src/mochiweb/mochijson.erl                      |   529 -
 src/mochiweb/mochijson2.erl                     |   889 -
 src/mochiweb/mochilists.erl                     |   104 -
 src/mochiweb/mochilogfile2.erl                  |   140 -
 src/mochiweb/mochinum.erl                       |   354 -
 src/mochiweb/mochitemp.erl                      |   311 -
 src/mochiweb/mochiutf8.erl                      |   317 -
 src/mochiweb/mochiweb.app.in                    |     9 -
 src/mochiweb/mochiweb.erl                       |   281 -
 src/mochiweb/mochiweb_acceptor.erl              |    51 -
 src/mochiweb/mochiweb_app.erl                   |    27 -
 src/mochiweb/mochiweb_charref.erl               |  2183 ---
 src/mochiweb/mochiweb_cookies.erl               |   331 -
 src/mochiweb/mochiweb_cover.erl                 |    75 -
 src/mochiweb/mochiweb_echo.erl                  |    41 -
 src/mochiweb/mochiweb_headers.erl               |   420 -
 src/mochiweb/mochiweb_html.erl                  |  1332 --
 src/mochiweb/mochiweb_http.erl                  |   264 -
 src/mochiweb/mochiweb_io.erl                    |    43 -
 src/mochiweb/mochiweb_mime.erl                  |   415 -
 src/mochiweb/mochiweb_multipart.erl             |   872 -
 src/mochiweb/mochiweb_request.erl               |   876 -
 src/mochiweb/mochiweb_request_tests.erl         |   182 -
 src/mochiweb/mochiweb_response.erl              |    72 -
 src/mochiweb/mochiweb_skel.erl                  |    86 -
 src/mochiweb/mochiweb_socket.erl                |    83 -
 src/mochiweb/mochiweb_socket_server.erl         |   350 -
 src/mochiweb/mochiweb_sup.erl                   |    41 -
 src/mochiweb/mochiweb_util.erl                  |   986 -
 src/mochiweb/reloader.erl                       |   161 -
 src/my-first-couchdb-plugin/.gitignore          |     1 -
 src/my-first-couchdb-plugin/Makefile            |    38 -
 src/my-first-couchdb-plugin/README.md           |   196 -
 .../priv/default.d/my_first_couchdb_plugin.ini  |     0
 .../src/my_first_couchdb_plugin.app.src         |    21 -
 .../src/my_first_couchdb_plugin.erl             |    18 -
 .../test/my_first_couchdb_plugin_tests.erl      |    15 -
 src/snappy/Makefile.am                          |    76 -
 src/snappy/erl_nif_compat.h                     |   129 -
 src/snappy/google-snappy/AUTHORS                |     1 -
 src/snappy/google-snappy/COPYING                |    28 -
 src/snappy/google-snappy/config.h.in            |   125 -
 src/snappy/google-snappy/snappy-internal.h      |   150 -
 src/snappy/google-snappy/snappy-sinksource.cc   |    71 -
 src/snappy/google-snappy/snappy-sinksource.h    |   137 -
 .../google-snappy/snappy-stubs-internal.cc      |    42 -
 .../google-snappy/snappy-stubs-internal.h       |   571 -
 .../google-snappy/snappy-stubs-public.h.in      |    85 -
 src/snappy/google-snappy/snappy.cc              |  1111 --
 src/snappy/google-snappy/snappy.h               |   155 -
 src/snappy/snappy.app.in                        |    12 -
 src/snappy/snappy.erl                           |    56 -
 src/snappy/snappy_nif.cc                        |   265 -
 994 files changed, 159906 insertions(+), 186977 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/add91738/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index fe268ff..d37786d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -134,6 +134,8 @@ utils/run
 src/fauxton/test/test.config.js
 src/fauxton/app/initialize.js
 
+deps
+
 # rebar
 support/rebar/rebar
 support/rebar/inttest/rt.work
@@ -142,6 +144,13 @@ rebar
 support/rebar/.test
 
 # couch_collate
-src/couch_collate/ebin
-src/couch_collate/priv
-rc/couch_collate/c_src/*.o
+apps/couch_collate/ebin
+apps/couch_collate/priv
+apps/couch_collate/c_src/*.o
+
+apps/couch/ebin
+apps/couch_replicator/ebin
+apps/couch_mrview/ebin
+apps/couch_index/ebin
+apps/couch_dbupdates/ebin
+apps/couch_plugins/ebin

http://git-wip-us.apache.org/repos/asf/couchdb/blob/add91738/apps/Makefile.am
----------------------------------------------------------------------
diff --git a/apps/Makefile.am b/apps/Makefile.am
new file mode 100644
index 0000000..378f82b
--- /dev/null
+++ b/apps/Makefile.am
@@ -0,0 +1,315 @@
+## 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.
+
+SUBDIRS = \
+    couch_dbupdates \
+    couch_index \
+    couch_mrview \
+    couch_plugins \
+    couch_replicator \
+    couchdb \
+    ejson \
+    erlang-oauth \
+    etap \
+    ibrowse \
+    mochiweb \
+    snappy \
+    couchjs-node
+
+EXTRA_DIST = \
+    $(MY_FIRST_COUCHDB_PLUGIN_FILES) \
+    $(FAUXTON_FILES)
+
+MY_FIRST_COUCHDB_PLUGIN_FILES = \
+  my-first-couchdb-plugin/.gitignore \
+  my-first-couchdb-plugin/Makefile \
+  my-first-couchdb-plugin/priv/default.d/my_first_couchdb_plugin.ini \
+  my-first-couchdb-plugin/README.md \
+  my-first-couchdb-plugin/src/my_first_couchdb_plugin.app.src \
+  my-first-couchdb-plugin/src/my_first_couchdb_plugin.erl \
+  my-first-couchdb-plugin/test/my_first_couchdb_plugin_tests.erl
+
+FAUXTON_FILES = \
+    fauxton/app/addons/activetasks/assets/less/activetasks.less \
+    fauxton/app/addons/activetasks/base.js \
+    fauxton/app/addons/activetasks/resources.js \
+    fauxton/app/addons/activetasks/routes.js \
+    fauxton/app/addons/activetasks/templates/detail.html \
+    fauxton/app/addons/activetasks/templates/table.html \
+    fauxton/app/addons/activetasks/templates/tabledetail.html \
+    fauxton/app/addons/activetasks/templates/tabs.html \
+    fauxton/app/addons/activetasks/tests/viewsSpec.js \
+    fauxton/app/addons/activetasks/views.js \
+    fauxton/app/addons/auth/assets/less/auth.less \
+    fauxton/app/addons/auth/base.js \
+    fauxton/app/addons/auth/resources.js \
+    fauxton/app/addons/auth/routes.js \
+    fauxton/app/addons/auth/templates/change_password.html \
+    fauxton/app/addons/auth/templates/create_admin.html \
+    fauxton/app/addons/auth/templates/login.html \
+    fauxton/app/addons/auth/templates/nav_dropdown.html \
+    fauxton/app/addons/auth/templates/nav_link_title.html \
+    fauxton/app/addons/auth/templates/noAccess.html \
+    fauxton/app/addons/config/base.js \
+    fauxton/app/addons/config/resources.js \
+    fauxton/app/addons/config/routes.js \
+    fauxton/app/addons/config/templates/dashboard.html \
+    fauxton/app/addons/config/templates/item.html \
+    fauxton/app/addons/contribute/base.js \
+    fauxton/app/addons/exampleAuth/base.js \
+    fauxton/app/addons/exampleAuth/templates/noAccess.html \
+    fauxton/app/addons/logs/base.js \
+    fauxton/app/addons/logs/resources.js \
+    fauxton/app/addons/logs/routes.js \
+    fauxton/app/addons/logs/templates/dashboard.html \
+    fauxton/app/addons/logs/templates/filterItem.html \
+    fauxton/app/addons/logs/templates/sidebar.html \
+    fauxton/app/addons/logs/tests/logSpec.js \
+    fauxton/app/addons/permissions/assets/less/permissions.less \
+    fauxton/app/addons/permissions/base.js \
+    fauxton/app/addons/permissions/resources.js \
+    fauxton/app/addons/permissions/routes.js \
+    fauxton/app/addons/permissions/templates/item.html \
+    fauxton/app/addons/permissions/templates/permissions.html \
+    fauxton/app/addons/permissions/templates/section.html \
+    fauxton/app/addons/permissions/tests/resourceSpec.js \
+    fauxton/app/addons/permissions/tests/viewsSpec.js \
+    fauxton/app/addons/permissions/views.js \
+    fauxton/app/addons/plugins/base.js \
+    fauxton/app/addons/plugins/resources.js \
+    fauxton/app/addons/plugins/routes.js \
+    fauxton/app/addons/plugins/templates/plugins.html \
+    fauxton/app/addons/replication/assets/less/replication.less \
+    fauxton/app/addons/replication/base.js \
+    fauxton/app/addons/replication/resources.js \
+    fauxton/app/addons/replication/route.js \
+    fauxton/app/addons/replication/templates/form.html \
+    fauxton/app/addons/replication/templates/progress.html \
+    fauxton/app/addons/replication/tests/replicationSpec.js \
+    fauxton/app/addons/replication/views.js \
+    fauxton/app/addons/stats/assets/less/stats.less \
+    fauxton/app/addons/stats/base.js \
+    fauxton/app/addons/stats/resources.js \
+    fauxton/app/addons/stats/routes.js \
+    fauxton/app/addons/stats/templates/by_method.html \
+    fauxton/app/addons/stats/templates/pie_table.html \
+    fauxton/app/addons/stats/templates/stats.html \
+    fauxton/app/addons/stats/templates/statselect.html \
+    fauxton/app/addons/stats/views.js \
+    fauxton/app/api.js \
+    fauxton/app/app.js \
+    fauxton/app/config.js \
+    fauxton/app/helpers.js \
+    fauxton/app/initialize.js.underscore \
+    fauxton/app/load_addons.js.underscore \
+    fauxton/app/main.js \
+    fauxton/app/mixins.js \
+    fauxton/app/modules/databases/base.js \
+    fauxton/app/modules/databases/resources.js \
+    fauxton/app/modules/databases/routes.js \
+    fauxton/app/modules/databases/views.js \
+    fauxton/app/modules/documents/base.js \
+    fauxton/app/modules/documents/resources.js \
+    fauxton/app/modules/documents/routes.js \
+    fauxton/app/modules/documents/tests/resourcesSpec.js \
+    fauxton/app/modules/documents/views.js \
+    fauxton/app/modules/fauxton/base.js \
+    fauxton/app/modules/fauxton/components.js \
+    fauxton/app/modules/fauxton/layout.js \
+    fauxton/app/modules/pouchdb/base.js \
+    fauxton/app/modules/pouchdb/pouch.collate.js \
+    fauxton/app/modules/pouchdb/pouchdb.mapreduce.js \
+    fauxton/app/resizeColumns.js \
+    fauxton/app/router.js \
+    fauxton/app/templates/databases/item.html \
+    fauxton/app/templates/databases/list.html \
+    fauxton/app/templates/databases/newdatabase.html \
+    fauxton/app/templates/databases/sidebar.html \
+    fauxton/app/templates/documents/all_docs_item.html \
+    fauxton/app/templates/documents/all_docs_list.html \
+    fauxton/app/templates/documents/changes.html \
+    fauxton/app/templates/documents/ddoc_info.html \
+    fauxton/app/templates/documents/doc.html \
+    fauxton/app/templates/documents/doc_field_editor.html \
+    fauxton/app/templates/documents/doc_field_editor_tabs.html \
+    fauxton/app/templates/documents/duplicate_doc_modal.html \
+    fauxton/app/templates/documents/edit_tools.html \
+    fauxton/app/templates/documents/index_menu_item.html \
+    fauxton/app/templates/documents/index_row_docular.html \
+    fauxton/app/templates/documents/index_row_tabular.html \
+    fauxton/app/templates/documents/jumpdoc.html \
+    fauxton/app/templates/documents/search.html \
+    fauxton/app/templates/documents/sidebar.html \
+    fauxton/app/templates/documents/tabs.html \
+    fauxton/app/templates/documents/upload_modal.html \
+    fauxton/app/templates/documents/view_editor.html \
+    fauxton/app/templates/fauxton/api_bar.html \
+    fauxton/app/templates/fauxton/breadcrumbs.html \
+    fauxton/app/templates/fauxton/footer.html \
+    fauxton/app/templates/fauxton/index_pagination.html \
+    fauxton/app/templates/fauxton/nav_bar.html \
+    fauxton/app/templates/fauxton/notification.html \
+    fauxton/app/templates/fauxton/pagination.html \
+    fauxton/app/templates/layouts/one_pane.html \
+    fauxton/app/templates/layouts/two_pane.html \
+    fauxton/app/templates/layouts/with_right_sidebar.html \
+    fauxton/app/templates/layouts/with_sidebar.html \
+    fauxton/app/templates/layouts/with_tabs.html \
+    fauxton/app/templates/layouts/with_tabs_sidebar.html \
+    fauxton/assets/css/nv.d3.css \
+    fauxton/assets/img/couchdb-site.png \
+    fauxton/assets/img/couchdblogo.png \
+    fauxton/assets/img/fontawesome-webfont.eot \
+    fauxton/assets/img/fontawesome-webfont.svg \
+    fauxton/assets/img/fontawesome-webfont.ttf \
+    fauxton/assets/img/fontawesome-webfont.woff \
+    fauxton/assets/img/FontAwesome.otf \
+    fauxton/assets/img/fontcustom_fauxton.eot \
+    fauxton/assets/img/fontcustom_fauxton.svg \
+    fauxton/assets/img/fontcustom_fauxton.ttf \
+    fauxton/assets/img/fontcustom_fauxton.woff \
+    fauxton/assets/img/glyphicons-halflings-white.png \
+    fauxton/assets/img/glyphicons-halflings.png \
+    fauxton/assets/img/linen.png \
+    fauxton/assets/img/loader.gif \
+    fauxton/assets/img/minilogo.png \
+    fauxton/assets/index.underscore \
+    fauxton/assets/js/libs/ace/ace.js \
+    fauxton/assets/js/libs/ace/ext-static_highlight.js \
+    fauxton/assets/js/libs/ace/ext-chromevox.js \
+    fauxton/assets/js/libs/ace/ext-statusbar.js \
+    fauxton/assets/js/libs/ace/ext-elastic_tabstops_lite.js \
+    fauxton/assets/js/libs/ace/ext-textarea.js \
+    fauxton/assets/js/libs/ace/ext-emmet.js \
+    fauxton/assets/js/libs/ace/ext-themelist.js \
+    fauxton/assets/js/libs/ace/ext-keybinding_menu.js \
+    fauxton/assets/js/libs/ace/ext-whitespace.js \
+    fauxton/assets/js/libs/ace/ext-language_tools.js \
+    fauxton/assets/js/libs/ace/mode-javascript.js \
+    fauxton/assets/js/libs/ace/ext-modelist.js \
+    fauxton/assets/js/libs/ace/mode-json.js \
+    fauxton/assets/js/libs/ace/ext-old_ie.js \
+    fauxton/assets/js/libs/ace/mode-jsoniq.js \
+    fauxton/assets/js/libs/ace/ext-options.js \
+    fauxton/assets/js/libs/ace/ext-searchbox.js \
+    fauxton/assets/js/libs/ace/theme-crimson_editor.js \
+    fauxton/assets/js/libs/ace/ext-settings_menu.js \
+    fauxton/assets/js/libs/ace/worker-javascript.js \
+    fauxton/assets/js/libs/ace/ext-spellcheck.js \
+    fauxton/assets/js/libs/ace/worker-json.js \
+    fauxton/assets/js/libs/ace/ext-split.js \
+    fauxton/assets/js/libs/ace/snippets/javascript.js \
+    fauxton/assets/js/libs/ace/snippets/json.js \
+    fauxton/assets/js/libs/ace/snippets/jsoniq.js \
+    fauxton/assets/js/libs/almond.js \
+    fauxton/assets/js/libs/backbone.js \
+    fauxton/assets/js/libs/bootstrap.js \
+    fauxton/assets/js/libs/d3.js \
+    fauxton/assets/js/libs/jquery.js \
+    fauxton/assets/js/libs/lodash.js \
+    fauxton/assets/js/libs/nv.d3.js \
+    fauxton/assets/js/libs/require.js \
+    fauxton/assets/js/libs/spin.min.js \
+    fauxton/assets/js/plugins/backbone.layoutmanager.js \
+    fauxton/assets/js/plugins/jquery.form.js \
+    fauxton/assets/js/plugins/prettify.js \
+    fauxton/assets/less/bootstrap/accordion.less \
+    fauxton/assets/less/bootstrap/alerts.less \
+    fauxton/assets/less/bootstrap/bootstrap.less \
+    fauxton/assets/less/bootstrap/breadcrumbs.less \
+    fauxton/assets/less/bootstrap/button-groups.less \
+    fauxton/assets/less/bootstrap/buttons.less \
+    fauxton/assets/less/bootstrap/carousel.less \
+    fauxton/assets/less/bootstrap/close.less \
+    fauxton/assets/less/bootstrap/code.less \
+    fauxton/assets/less/bootstrap/component-animations.less \
+    fauxton/assets/less/bootstrap/dropdowns.less \
+    fauxton/assets/less/bootstrap/font-awesome/bootstrap.less \
+    fauxton/assets/less/bootstrap/font-awesome/core.less \
+    fauxton/assets/less/bootstrap/font-awesome/extras.less \
+    fauxton/assets/less/bootstrap/font-awesome/font-awesome-ie7.less \
+    fauxton/assets/less/bootstrap/font-awesome/font-awesome.less \
+    fauxton/assets/less/bootstrap/font-awesome/icons.less \
+    fauxton/assets/less/bootstrap/font-awesome/mixins.less \
+    fauxton/assets/less/bootstrap/font-awesome/path.less \
+    fauxton/assets/less/bootstrap/font-awesome/variables.less \
+    fauxton/assets/less/bootstrap/forms.less \
+    fauxton/assets/less/bootstrap/grid.less \
+    fauxton/assets/less/bootstrap/hero-unit.less \
+    fauxton/assets/less/bootstrap/labels-badges.less \
+    fauxton/assets/less/bootstrap/layouts.less \
+    fauxton/assets/less/bootstrap/media.less \
+    fauxton/assets/less/bootstrap/mixins.less \
+    fauxton/assets/less/bootstrap/modals.less \
+    fauxton/assets/less/bootstrap/navbar.less \
+    fauxton/assets/less/bootstrap/navs.less \
+    fauxton/assets/less/bootstrap/pager.less \
+    fauxton/assets/less/bootstrap/pagination.less \
+    fauxton/assets/less/bootstrap/popovers.less \
+    fauxton/assets/less/bootstrap/progress-bars.less \
+    fauxton/assets/less/bootstrap/reset.less \
+    fauxton/assets/less/bootstrap/responsive-1200px-min.less \
+    fauxton/assets/less/bootstrap/responsive-767px-max.less \
+    fauxton/assets/less/bootstrap/responsive-768px-979px.less \
+    fauxton/assets/less/bootstrap/responsive-navbar.less \
+    fauxton/assets/less/bootstrap/responsive-utilities.less \
+    fauxton/assets/less/bootstrap/responsive.less \
+    fauxton/assets/less/bootstrap/scaffolding.less \
+    fauxton/assets/less/bootstrap/sprites.less \
+    fauxton/assets/less/bootstrap/tables.less \
+    fauxton/assets/less/bootstrap/tests/buttons.html \
+    fauxton/assets/less/bootstrap/tests/css-tests.css \
+    fauxton/assets/less/bootstrap/thumbnails.less \
+    fauxton/assets/less/bootstrap/tooltip.less \
+    fauxton/assets/less/bootstrap/type.less \
+    fauxton/assets/less/bootstrap/utilities.less \
+    fauxton/assets/less/bootstrap/variables.less \
+    fauxton/assets/less/bootstrap/wells.less \
+    fauxton/assets/less/config.less \
+    fauxton/assets/less/couchdb.less \
+    fauxton/assets/less/database.less \
+    fauxton/assets/less/fauxton.less \
+    fauxton/assets/less/icons.less \
+    fauxton/assets/less/logs.less \
+    fauxton/assets/less/prettyprint.less \
+    fauxton/assets/less/variables.less \
+    fauxton/bin/grunt \
+    fauxton/couchapp.js \
+    fauxton/favicon.ico \
+    fauxton/Gruntfile.js \
+    fauxton/index.html \
+    fauxton/package.json \
+    fauxton/readme.md \
+    fauxton/settings.json.default \
+    fauxton/settings.json.sample_external \
+    fauxton/tasks/addon/rename.json \
+    fauxton/tasks/addon/root/base.js.underscore \
+    fauxton/tasks/addon/root/resources.js.underscore \
+    fauxton/tasks/addon/root/routes.js.underscore \
+    fauxton/tasks/addon/template.js \
+    fauxton/tasks/couchserver.js \
+    fauxton/tasks/fauxton.js \
+    fauxton/tasks/helper.js \
+    fauxton/test/core/layoutSpec.js \
+    fauxton/test/core/navbarSpec.js \
+    fauxton/test/core/paginateSpec.js \
+    fauxton/test/core/routeObjectSpec.js \
+    fauxton/test/mocha/chai.js \
+    fauxton/test/mocha/mocha.css \
+    fauxton/test/mocha/mocha.js \
+    fauxton/test/mocha/sinon-chai.js \
+    fauxton/test/mocha/sinon.js \
+    fauxton/test/mocha/testUtils.js \
+    fauxton/test/runner.html \
+    fauxton/test/test.config.underscore \
+    fauxton/TODO.md \
+    fauxton/writing_addons.md

http://git-wip-us.apache.org/repos/asf/couchdb/blob/add91738/apps/couch/include/couch_db.hrl
----------------------------------------------------------------------
diff --git a/apps/couch/include/couch_db.hrl b/apps/couch/include/couch_db.hrl
new file mode 100644
index 0000000..e0a1c82
--- /dev/null
+++ b/apps/couch/include/couch_db.hrl
@@ -0,0 +1,286 @@
+% 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.
+
+-define(LOCAL_DOC_PREFIX, "_local/").
+-define(DESIGN_DOC_PREFIX0, "_design").
+-define(DESIGN_DOC_PREFIX, "_design/").
+-define(DEFAULT_COMPRESSION, snappy).
+
+-define(MIN_STR, <<"">>).
+-define(MAX_STR, <<255>>). % illegal utf string
+
+% the lowest possible database sequence number
+-define(LOWEST_SEQ, 0).
+
+-define(REWRITE_COUNT, couch_rewrite_count).
+
+-define(JSON_ENCODE(V), jiffy:encode(V, [uescape])).
+-define(JSON_DECODE(V), couch_util:json_decode(V)).
+
+-define(b2l(V), binary_to_list(V)).
+-define(l2b(V), list_to_binary(V)).
+-define(term_to_bin(T), term_to_binary(T, [{minor_version, 1}])).
+-define(term_size(T),
+    try
+        erlang:external_size(T)
+    catch _:_ ->
+        byte_size(?term_to_bin(T))
+    end).
+
+-define(DEFAULT_ATTACHMENT_CONTENT_TYPE, <<"application/octet-stream">>).
+
+-define(LOG_DEBUG(Format, Args),
+    case couch_log:debug_on(?MODULE) of
+        true ->
+            couch_log:debug(Format, Args);
+        false -> ok
+    end).
+
+-define(LOG_INFO(Format, Args),
+    case couch_log:info_on(?MODULE) of
+        true ->
+            couch_log:info(Format, Args);
+        false -> ok
+    end).
+
+-define(LOG_WARN(Format, Args),
+    case couch_log:warn_on(?MODULE) of
+        true ->
+            couch_log:warn(Format, Args);
+        false -> ok
+    end).
+
+-define(LOG_ERROR(Format, Args), couch_log:error(Format, Args)).
+
+% Tree::term() is really a tree(), but we don't want to require R13B04 yet
+-type branch() :: {Key::term(), Value::term(), Tree::term()}.
+-type path() :: {Start::pos_integer(), branch()}.
+-type tree() :: [branch()]. % sorted by key
+
+-record(rev_info,
+    {
+    rev,
+    seq = 0,
+    deleted = false,
+    body_sp = nil % stream pointer
+    }).
+
+-record(doc_info,
+    {
+    id = <<"">>,
+    high_seq = 0,
+    revs = [] % rev_info
+    }).
+
+-record(full_doc_info,
+    {id = <<"">>,
+    update_seq = 0,
+    deleted = false,
+    rev_tree = [],
+    leafs_size = 0
+    }).
+
+-record(httpd,
+    {mochi_req,
+    peer,
+    method,
+    requested_path_parts,
+    path_parts,
+    db_url_handlers,
+    user_ctx,
+    req_body = undefined,
+    design_url_handlers,
+    auth,
+    default_fun,
+    url_handlers
+    }).
+
+
+-record(doc,
+    {
+    id = <<"">>,
+    revs = {0, []},
+
+    % the json body object.
+    body = {[]},
+
+    atts = [], % attachments
+
+    deleted = false,
+
+    % key/value tuple of meta information, provided when using special options:
+    % couch_db:open_doc(Db, Id, Options).
+    meta = []
+    }).
+
+
+-record(att,
+    {
+    name,
+    type,
+    att_len,
+    disk_len, % length of the attachment in its identity form
+              % (that is, without a content encoding applied to it)
+              % differs from att_len when encoding /= identity
+    md5= <<>>,
+    revpos=0,
+    data,
+    encoding=identity % currently supported values are:
+                      %     identity, gzip
+                      % additional values to support in the future:
+                      %     deflate, compress
+    }).
+
+
+-record(user_ctx,
+    {
+    name=null,
+    roles=[],
+    handler
+    }).
+
+% This should be updated anytime a header change happens that requires more
+% than filling in new defaults.
+%
+% As long the changes are limited to new header fields (with inline
+% defaults) added to the end of the record, then there is no need to increment
+% the disk revision number.
+%
+% if the disk revision is incremented, then new upgrade logic will need to be
+% added to couch_db_updater:init_db.
+
+-define(LATEST_DISK_VERSION, 6).
+
+-record(db_header,
+    {disk_version = ?LATEST_DISK_VERSION,
+     update_seq = 0,
+     unused = 0,
+     fulldocinfo_by_id_btree_state = nil,
+     docinfo_by_seq_btree_state = nil,
+     local_docs_btree_state = nil,
+     purge_seq = 0,
+     purged_docs = nil,
+     security_ptr = nil,
+     revs_limit = 1000
+    }).
+
+-record(db,
+    {main_pid = nil,
+    update_pid = nil,
+    compactor_pid = nil,
+    instance_start_time, % number of microsecs since jan 1 1970 as a binary string
+    fd,
+    updater_fd,
+    fd_ref_counter,
+    header = #db_header{},
+    committed_update_seq,
+    fulldocinfo_by_id_btree,
+    docinfo_by_seq_btree,
+    local_docs_btree,
+    update_seq,
+    name,
+    filepath,
+    validate_doc_funs = [],
+    security = [],
+    security_ptr = nil,
+    user_ctx = #user_ctx{},
+    waiting_delayed_commit = nil,
+    revs_limit = 1000,
+    fsync_options = [],
+    options = [],
+    compression,
+    before_doc_update = nil, % nil | fun(Doc, Db) -> NewDoc
+    after_doc_read = nil     % nil | fun(Doc, Db) -> NewDoc
+    }).
+
+
+-record(view_query_args, {
+    start_key,
+    end_key,
+    start_docid = ?MIN_STR,
+    end_docid = ?MAX_STR,
+
+    direction = fwd,
+    inclusive_end=true, % aka a closed-interval
+
+    limit = 10000000000, % Huge number to simplify logic
+    skip = 0,
+
+    group_level = 0,
+
+    view_type = nil,
+    include_docs = false,
+    doc_options = [],
+    conflicts = false,
+    stale = false,
+    multi_get = false,
+    callback = nil,
+    list = nil
+}).
+
+-record(view_fold_helper_funs, {
+    reduce_count,
+    passed_end,
+    start_response,
+    send_row
+}).
+
+-record(reduce_fold_helper_funs, {
+    start_response,
+    send_row
+}).
+
+-record(extern_resp_args, {
+    code = 200,
+    stop = false,
+    data = <<>>,
+    ctype = "application/json",
+    headers = [],
+    json = nil
+}).
+
+-record(index_header,
+    {seq=0,
+    purge_seq=0,
+    id_btree_state=nil,
+    view_states=nil
+    }).
+
+% small value used in revision trees to indicate the revision isn't stored
+-define(REV_MISSING, []).
+
+-record(changes_args, {
+    feed = "normal",
+    dir = fwd,
+    since = 0,
+    limit = 1000000000000000,
+    style = main_only,
+    heartbeat,
+    timeout,
+    filter = "",
+    filter_fun,
+    filter_args = [],
+    include_docs = false,
+    doc_options = [],
+    conflicts = false,
+    db_open_options = []
+}).
+
+-record(btree, {
+    fd,
+    root,
+    extract_kv = fun({_Key, _Value} = KV) -> KV end,
+    assemble_kv = fun(Key, Value) -> {Key, Value} end,
+    less = fun(A, B) -> A < B end,
+    reduce = nil,
+    compression = ?DEFAULT_COMPRESSION
+}).

http://git-wip-us.apache.org/repos/asf/couchdb/blob/add91738/apps/couch/priv/Makefile.am
----------------------------------------------------------------------
diff --git a/apps/couch/priv/Makefile.am b/apps/couch/priv/Makefile.am
new file mode 100644
index 0000000..9a24222
--- /dev/null
+++ b/apps/couch/priv/Makefile.am
@@ -0,0 +1,151 @@
+## 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.
+
+MAKE_SAFE = $(MAKE)
+
+couchlibdir = $(localerlanglibdir)/couch-$(version)
+couchprivdir = $(couchlibdir)/priv
+couchprivlibdir = $(couchlibdir)/priv/lib
+man1dir = $(mandir)/man1
+
+man_file = couchjs.1
+
+if BUILD_MAN
+man_file_build = $(man_file)
+else
+man_file_build =
+endif
+
+BUILT_SOURCES = $(man_file_build)
+
+EXTRA_DIST = \
+	spawnkillable/couchspawnkillable.sh \
+	stat_descriptions.cfg.in \
+	couch_ejson_compare/erl_nif_compat.h \
+	couch_js/sm170.c \
+	couch_js/sm180.c \
+	couch_js/sm185.c \
+	$(man_file_build)
+
+CLEANFILES = $(man_file_build) stat_descriptions.cfg
+
+couchprivlib_LTLIBRARIES = couch_icu_driver.la
+if USE_EJSON_COMPARE_NIF
+couchprivlib_LTLIBRARIES += couch_ejson_compare.la
+couch_ejson_compare_la_SOURCES = couch_ejson_compare/couch_ejson_compare.c
+couch_ejson_compare_la_CPPFLAGS = -D_BSD_SOURCE $(ICU_CPPFLAGS) $(ERLANG_FLAGS)
+couch_ejson_compare_la_LDFLAGS = -module -avoid-version
+couch_ejson_compare_la_LIBADD = $(ICU_LIBS)
+if WINDOWS
+couch_ejson_compare_la_LDFLAGS += -no-undefined
+endif
+endif
+couch_icu_driver_la_SOURCES = icu_driver/couch_icu_driver.c
+couch_icu_driver_la_LDFLAGS = -module -avoid-version
+couch_icu_driver_la_CPPFLAGS = $(ICU_CPPFLAGS) $(ERLANG_FLAGS)
+couch_icu_driver_la_LIBADD = $(ICU_LIBS)
+
+if WINDOWS
+couch_icu_driver_la_LDFLAGS += -no-undefined
+endif
+
+COUCHJS_SRCS = \
+	couch_js/help.h \
+	couch_js/http.c \
+	couch_js/http.h \
+	couch_js/main.c \
+	couch_js/utf8.c \
+	couch_js/utf8.h \
+	couch_js/util.h \
+	couch_js/util.c
+
+locallibbin_PROGRAMS = couchjs
+couchjs_SOURCES = $(COUCHJS_SRCS)
+couchjs_CFLAGS = -g -Wall -Werror -D_BSD_SOURCE $(CURL_CFLAGS) $(JS_CFLAGS)
+couchjs_LDADD = $(CURL_LIBS) $(JS_LIBS)
+
+couchpriv_DATA = stat_descriptions.cfg
+couchpriv_PROGRAMS = couchspawnkillable
+
+# Depend on source files so distributed man pages are not rebuilt for end user.
+
+$(man_file): $(COUCHJS_SRCS)
+	$(MAKE_SAFE) -f Makefile couchjs; \
+	$(top_srcdir)/build-aux/missing --run \
+	    help2man \
+	        --no-info \
+	        --help-option="-h" \
+	        --version-option="-V" \
+	        --name="$(package_name) JavaScript interpreter" \
+	        ./couchjs --output $@
+
+install-data-local:
+	if test -s $(man_file); then \
+	    if test `cat $(man_file) | wc -l` -gt 1; then \
+	        $(INSTALL) -d $(DESTDIR)$(man1dir); \
+	        $(INSTALL_DATA) $(man_file) $(DESTDIR)$(man1dir)/$(man_file); \
+	    fi \
+	fi
+
+%.cfg: %.cfg.in
+	cp $< $@
+
+if WINDOWS
+couchspawnkillable_SOURCES = spawnkillable/couchspawnkillable_win.c
+endif
+
+if !WINDOWS
+couchspawnkillable: spawnkillable/couchspawnkillable.sh
+	cp $< $@
+	chmod +x $@
+endif
+
+# libtool and automake have defeated markh.  For each of our executables
+# we end up with 2 copies - one directly in the 'target' folder (eg, 'priv')
+# and another - the correct one - in .libs.  The former doesn't work but is
+# what gets installed for 'couchspawnkillable' - but the correct one for
+# couchjs.exe *does* get copied.  *shrug*  So just clobber it with the
+# correct one as the last step. See bug COUCHDB-439
+install-data-hook:
+	if test -f "$(DESTDIR)$(couchprivlibdir)/couch_icu_driver"; then \
+	    rm -f "$(DESTDIR)$(couchprivlibdir)/couch_icu_driver.so"; \
+	    cd "$(DESTDIR)$(couchprivlibdir)" && \
+	        $(LN_S) couch_icu_driver couch_icu_driver.so; \
+	fi
+	if test -f "$(DESTDIR)$(couchprivlibdir)/couch_ejson_compare_nif"; then \
+	    rm -f "$(DESTDIR)$(couchprivlibdir)/couch_ejson_compare_nif.so"; \
+	    cd "$(DESTDIR)$(couchprivlibdir)" && \
+	        $(LN_S) couch_ejson_compare_nif couch_ejson_compare_nif.so; \
+	fi
+if WINDOWS
+	$(INSTALL) $(ICU_BIN)/icuuc*.dll $(bindir)
+	$(INSTALL) $(ICU_BIN)/icudt*.dll $(bindir)
+	$(INSTALL) $(ICU_BIN)/icuin*.dll $(bindir)
+	$(INSTALL) $(JS_LIB_BINARY) $(bindir)
+	$(INSTALL) .libs/couchspawnkillable.exe \
+		"$(DESTDIR)$(couchprivdir)/couchspawnkillable.exe"
+endif
+
+uninstall-local:
+	rm -f $(DESTDIR)$(man1dir)/$(man_file)
+	if test -f "$(DESTDIR)$(couchprivlibdir)/couch_erl_driver"; then \
+	    rm -f "$(DESTDIR)$(couchprivlibdir)/couch_erl_driver.so"; \
+	fi
+
+distcheck-hook:
+	if test ! -s $(man_file); then \
+	    $(top_srcdir)/build-aux/dist-error $(man_file); \
+	else \
+	    if test ! `cat $(man_file) | wc -l` -gt 1; then \
+	        $(top_srcdir)/build-aux/dist-error $(man_file); \
+	    fi \
+	fi


Mime
View raw message