Date: Wed, 28 Dec 2005 00:48:17 +0100 From: Daniel Leidert <daniel.leidert.spam@gmx.net> To: freebsd-cvsweb@freebsd.org Subject: Re: Usage question (automatically get the current project-root) Message-ID: <1135727297.4931.3.camel@localhost> In-Reply-To: <1135716552.13113.14.camel@bobcat.mine.nu> References: <1135712437.32456.9.camel@localhost> <1135716552.13113.14.camel@bobcat.mine.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
Am Dienstag, den 27.12.2005, 22:49 +0200 schrieb Ville Skytt=E4: > On Tue, 2005-12-27 at 20:40 +0100, Daniel Leidert wrote: >=20 > > I have a question, I hope someone can answer. In my case, cvsweb can > > show two project-roots. This means, in cvsweb.conf, I have something > > like this: > >=20 > > @CVSrepositories =3D ( > > 'project1' =3D> ['project1', '/var/lib/cvs/cvs/project1'], > > 'project2' =3D> ['project2', '/var/lib/cvs/cvs/project2'], > > ); > [...] > > Now I would like to have the possibility to automatically write the > > correct current project-root where the user is - instead of writing the > > general "project-root" phrase with the explanation, what this phrase is= . > > So if the user is looking at project1, the output of $long_intro should > > automatically be: > [...] > > Any ideas, how or if this could be realized? (I hope, you understand th= e > > sense of this request.) >=20 > Yep, take a look at the cvsweb.conf-*bsd files shipped in the cvsweb > tarball, and the "per-cvsroot configuration" commentary in cvsweb.conf > above @CVSrepositories. >=20 > So if your @CVSrepositories are as in the above, create a new file > called cvsweb.conf-project1 to the same dir as the main cvsweb.conf and > add project1 specific $long_intro and whatever you like there etc (and > remember to end the file with "1;"), ditto for project2 -> > cvsweb.conf-project2. Thanks for pointing me into the right direction. The per-cvsroot configuration files work. > Of course, there's more than one way to do it (cvsweb.conf is Perl code > anyway), True, ... > but I think the per-cvsroot config snippets are a good way to > accomplish what you're looking for. ... right. Thanks. Regards, Daniel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1135727297.4931.3.camel>
