Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Dec 2005 20:40:36 +0100
From:      Daniel Leidert <daniel.leidert.spam@gmx.net>
To:        ml_cvsweb <freebsd-cvsweb@freebsd.org>
Subject:   Usage question (automatically get the current project-root)
Message-ID:  <1135712437.32456.9.camel@localhost>

next in thread | raw e-mail | index | archive | help
Hello,

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:

@CVSrepositories = (
  'project1' => ['project1', '/var/lib/cvs/cvs/project1'],
  'project2' => ['project2', '/var/lib/cvs/cvs/project2'],
);

Now I wrote some checkout infos in $long_intro:

[..]
cvs -z3 -d:pserver:anonymous\@cvs.foo.bar:/cvs/project-root co module

where project-root is one of the projects you see listed in the
pull-down menu below.
[..]

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:

[..]
cvs -z3 -d:pserver:anonymous\@cvs.foo.bar:/cvs/project1 co module
[..]

The ideal case would be to be able to do the same for $short_intro, but
there also with the possibility to automatically write the right
module-name.

Any ideas, how or if this could be realized? (I hope, you understand the
sense of this request.)

Regards, Daniel




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1135712437.32456.9.camel>