[
https://issues.apache.org/jira/browse/COUCHDB-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoit Chesneau updated COUCHDB-1012:
-------------------------------------
Attachment: 0001-add-couch-config-file-used-to-ease-the-build-of-plug.patch
Following our last discussion on IRC, find attached apatch that provide the new
couch-config command to couchdb. This is a full shell script built during
installation.
Usage:
$ ./bin/couch-config
Usage: couch-config [OPTION]
The couch-config command runs the Apache CouchDB configuration helper
script.
Options:
--incdir Print path to include dir
--libdir Print path to lib dir
--ebindir Print path to ebin dir
--privdir Print path to priv dir
--bindir Print Path to the couchdb binary
--confdir Print Path to the configuration dir
--dbdir Print path to database dir
--viewdir Print path to view index dir
--urifile Print path to uri file
--logfile Print path to log file
--version Print version of couch-config
-? Print usage
For last confdir/dbdir/viewdir/urifile & logfile options It may be better to
directly acces to couchdb and get the settings from the ini since these values
can be changed. Thoughts ?
> Utility to help plugin developers manage paths
> ----------------------------------------------
>
> Key: COUCHDB-1012
> URL: https://issues.apache.org/jira/browse/COUCHDB-1012
> Project: CouchDB
> Issue Type: New Feature
> Components: Build System
> Reporter: Randall Leeds
> Assignee: Randall Leeds
> Fix For: 1.2
>
> Attachments:
> 0001-add-couch-config-file-used-to-ease-the-build-of-plug.patch,
> 0001-support-pkg-config-for-plugins-COUCHDB-1012.patch
>
>
> Developers may want to write plugins (like GeoCouch) for CouchDB. Many hooks
> in the configuration system allow loading arbitrary Erlang modules to handle
> various internal tasks, but currently there is no straightforward and
> portable way for developers of these plugins to discover the location of the
> CouchDB library files.
> Two options that have been proposed are to use pkg-config or install a
> separate script that could be invoked (e.g. as couch-config --erl-libs) to
> discover important CouchDB installation paths.
> As far as I know the loudest argument against pkg-config is lack of support
> for Windows.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira