Re: [viewvc-users] Configurable config file location?

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <[email protected]>
On 07/19/2010 04:26 PM, John Beranek wrote:
> My thought was that I'd change the code to allow the config file
> location to be overridden by an environment variable. Looking at the
> code it looks like there's already some kind of support for this. Is it
> true that I only need to change all the places that define CONF_PATHNAME
> to define it as "None"?
> 
> If so, I could then set VIEWVC_CONF_PATHNAME in the Apache config, and
> have multiple "viewvc.conf" files, one for each site. This would
> certainly be an advance.

Yup.  You can do that today.

> _However_, what would be really lovely to be able to do in a
> "viewvc-newyork.conf" would be something like:
> 
> ==================================================================
> include "viewvc-common.conf"
> 
> [config_section]
> variable_a = blah
> variable_b = blah
> ==================================================================
> 
> Unfortunately I'm not sure the ".ini" file format has any syntax for any
> such usage. I could always do this myself with the C preprocessor, but I
> don't think I really want to add the burden of having a Makefile that
> utilises the C preprocessor.

Yeah, I don't believe that the .ini file format allows for that.

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2636459

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkxHS2QACgkQokEGqRcG/W79xQCgyb8k1gMddwzoFW19xtrFQSS+
rMsAoL8AzHsVf+xcSClsVOolwl2HxftT
=/vN+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.