cvs -d /path/to/homedir/cvs import -m "initial import" html user start
In this command
* '-d /path/to/homedir/cvs' specify the path to our repository. Alternatively you can add:
export CVSROOT='/path/to/homedir/cvs' to your ~/.profile file. You must use an absolute path.
* 'import' is our cvs command
* '-m "initial import" is a message that will appear in the log.
* 'html' is the name of our new module
* 'user' is a vendor tag, you can use your username or SDF or whatever
* 'start' is a release tag.
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.
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
* 'user' is your login name at SDF a
* 'freeshell.org' is your prefered host at SDF
* '/path/to/homedir/cvs' is the full path to our repository at SDF.
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