LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-06-2004, 06:08 PM   #1
CaptainRandom
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Rep: Reputation: 0
How can I set this up as a CVS module?


Okay, I've used CVS for quite a while on the client side, but I've rarely had to do the actual admin of the repository.

I'm working on one repository that is already set up with a few modules in /usr/lib/cvs that can be checked out and modified by the members, but the root (/usr/lib/cvs) isn't set up as a module, so anyone who wants the entire repository still has to check out the individual modules.

How can I set up the root directory as a module itself, so that our users can checkout the entire repository, or just check out the modules that they choose?

I've read through a couple of online faqs on CVS, but I've still got a ways to go in comprehension.

I appreciate any suggestions/comments.

Thanks!
 
Old 06-06-2004, 08:19 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
I don't think you (as administrator) want to allow users to checkout the cvsroot entirely. The reason I say that is because if you do, then that means every user will have access to the CVS administration files located in $CVSROOT/CVSROOT. That has "bad idea" written all over it.

More than likely what you want to do is edit your modules file. From some working directory:
Code:
$ cvs checkout CVSROOT
$ cd CVSROOT
<edit contents of modules file>
$ cvs commit
$ cd ..
$ cvs release -d CVSROOT
If I understand correctly, what you want in the module file is something like this:
Code:
your_module_name &regular_module_1 &regular_module_2 ...
Replace your_module_name with whatever you like; a name to refer to the complete module collection. Then replace each "regular_module_X" reference with whatever names have been given to the chunks of code to check out. So, assuming you wanted to set things up so you could check out "all_modules", and have it snag "display_code", "sound_code", and "network_code", you would get this directory structure on a cvs checkout all_modules:
Code:
all_modules/
all_modules/display_code
all_modules/display_code/<display_code hierarchy>
all_modules/sound_code
all_modules/sound_code/<sound_code hierarchy>
all_modules/network_code
all_modules/network_code/<network_code hierarchy>
Clear as mud?
 
Old 06-07-2004, 04:44 AM   #3
CaptainRandom
LQ Newbie
 
Registered: Mar 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Yup, definitely clear as mud.

True, setting up the root as a module is pretty insecure, but I need to set this up to check out all modules at once.

Most of the users of this repository will be accessing it via TortoiseCVS, so I just need to make sure that they can run a cvs update and get back all the modules with one click.

I'll try to edit the CVSROOT modules file in /usr/lib/cvs, and I'll see how far I get.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
permanent module options: where to set? mehlkelm Debian 2 09-20-2005 02:18 AM
how to set module parameters lordofring Programming 2 09-02-2005 06:07 AM
Display CVS module list neranjana Linux - Software 1 01-14-2005 03:57 AM
CVS?????? how do you set it up? RacerD Linux - Networking 3 11-30-2001 12:35 PM
CVS I get an error when i try to use it, how do i set it up? RacerD Linux - Networking 0 10-16-2001 05:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration