Latest

Archive

Community news

C++

Communities and Content

Databases

Editorials

Emacs

General

HTML

Java

Notices

PHP

XML

Apache

C++

Database

General

HTML

Java

Javascript

Linux

Object oriented programming

Open source

Perl

PHP

Python

Ruby

SOAP

XML

Suggest a link

Advertise on zez

Contribute

Contact us

About zez


Version Control management with CVS - Part 3



Managing modules

One thing you might have notice with the imported project was that when you checked it out you got a directory structure like music/apollo. From my perspective this is unnecessary since we need to go inside the music directory before getting to our project. To remedy this we can use CVS modules. They are basically named aliases for one of your CVS directories.

To add a new module we need to get access to one of the CVS administration files, namely the modules file. This is done by invoking

cvs co CVSROOT/modules


You should now have a directory called CVSROOT, look inside it and should find the file modules. Now edit it with your favorite editor, go to the bottom of it and add

apollo music/apollo


Now commit your changes (update in case others have change it), remove the CVSROOT directory and try and checkout our newly named project and do

cvs co apollo


Voila, our project now resides directly in the apollo directory ready for development.

The modules file has other interesting features such as automatic include of sub-projects, but I'll leave that to another part.


<< Previous page | 1 | 2 | < 3 > | 4 | Next page >> | Printer-friendly page |

Comment List


There are no comments.


Forgot your password?

Register a new user

Results

Polls