Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Usage question (automatically get the current project-root)


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

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

Regards, Daniel