This tutorial is not about using a version control system, or about using cvs, but about how to get started with cvs on SDF
The cvs repository is just a simple directory. Our repository will be made in our home directory, and we will name it “cvs”.
cvs requires that you use an absolute path to the repository. To learn the full path to your home directory type:
cd; pwd
In the rest of this document you will need to replace ‘/path/to/homedir/’ by the output of the previous command.
Creating our repository is very simple:
cd mkdir cvs cvs -d /path/to/homedir/cvs init
That's it.
Let's add our website into our repository:
cd html cvs -d /path/to/homedir/cvs import -m "initial import" html user start
In this command
export CVSROOT='/path/to/homedir/cvs' to your ~/.profile file. You must use an absolute path.
You can modify the message, the module name and the tags to your liking, just keep in mind that in the rest of this tutorial we will use ‘html’ for the module name.
cd mkdir tmp cd tmp cvs -d /path/to/homedir/cvs co html
This should be enough to convince ourselves that the directory is now under version control.
We can access our repository from the outside using ssh, to do this we need to set the environment variable CVS_RSH so that cvs will use ssh, using for instance:
export CVS_RSH=ssh
And then use for the variable CVS_ROOT, or the -d switch: ‘:ext:user@freeshell.org:/path/to/homedir/cvs/’, where
For instance to check out our html module:
cvs -d ':ext:user@freeshell.org:/path/to/homedir/cvs' co html
After having made our modifications, we just need to check our changes back in:
cvs update # if we made some changes elsewhere cvs -d ':ext:user@freeshell.org:/path/to/homedir/cvs' ci html
man cvs
$Id: cvs_on_sdf.html,v 1.3 2015/01/28 01:01:52 grobe0ba Exp $