<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rsewiki.electro.dtu.dk/index.php?action=history&amp;feed=atom&amp;title=Old_CVS_setup</id>
	<title>Old CVS setup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rsewiki.electro.dtu.dk/index.php?action=history&amp;feed=atom&amp;title=Old_CVS_setup"/>
	<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Old_CVS_setup&amp;action=history"/>
	<updated>2026-05-03T22:06:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rsewiki.electro.dtu.dk/index.php?title=Old_CVS_setup&amp;diff=212&amp;oldid=prev</id>
		<title>Lvm: New page: As of 20031001 the CVS repositories for the various robotics projects are being moved to /shome/cvs/repository on the server Little.  So far the following modules are in place: * robot * o...</title>
		<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Old_CVS_setup&amp;diff=212&amp;oldid=prev"/>
		<updated>2008-09-29T11:17:12Z</updated>

		<summary type="html">&lt;p&gt;New page: As of 20031001 the CVS repositories for the various robotics projects are being moved to /shome/cvs/repository on the server Little.  So far the following modules are in place: * robot * o...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;As of 20031001 the CVS repositories for the various&lt;br /&gt;
robotics projects are being moved to /shome/cvs/repository&lt;br /&gt;
on the server Little.&lt;br /&gt;
&lt;br /&gt;
So far the following modules are in place:&lt;br /&gt;
* robot&lt;br /&gt;
* oskit&lt;br /&gt;
* linux (SMRd)&lt;br /&gt;
* robot2005 (SMRdemo)&lt;br /&gt;
* aumat (matrix library)&lt;br /&gt;
* ausmrcc (SDL GUI for remote controlling SMDdemo based robots)&lt;br /&gt;
* ausmrcc2 (New version where development is done - Linux support)&lt;br /&gt;
* aurobotsim (Java multi robot simulator)&lt;br /&gt;
* aurobotservers (camera and laserscanner server - new clean server)&lt;br /&gt;
* hakoclient (Client program for executing HAKO specific route plans)&lt;br /&gt;
&lt;br /&gt;
To access these modules make sure the following steps have&lt;br /&gt;
been taken.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;For the impatient&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To checkout the robot module do the following (change USERNAME to your login):&lt;br /&gt;
&lt;br /&gt;
$ export CVS_RSH=ssh&lt;br /&gt;
&lt;br /&gt;
$ cvs -d USERNAME@kalman:/shome/cvs/repository checkout robot&lt;br /&gt;
&lt;br /&gt;
The following commands expect that you are in the directory created by the above command (or another directory that holds your local copy of a CVS tree).&lt;br /&gt;
&lt;br /&gt;
To update your local version of the robot module:&lt;br /&gt;
&lt;br /&gt;
$ cvs update -d&lt;br /&gt;
&lt;br /&gt;
&amp;#039;Note: Check for conflicts!&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To see what changes you have made since you last updated:&lt;br /&gt;
&lt;br /&gt;
$ cvs diff&lt;br /&gt;
&lt;br /&gt;
&amp;#039;Note: the above command checks against the version you actually checked out and not the newest version on the server&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To see what changes exist between the newest version on the server and your local copy:&lt;br /&gt;
&lt;br /&gt;
$ cvs diff -D &amp;quot;now&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To commit your changes to the server:&lt;br /&gt;
&lt;br /&gt;
$ cvs commit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Use an account that is a member of the vip group&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To become a member of the &amp;#039;&amp;#039;vip&amp;#039;&amp;#039; group contact your system&lt;br /&gt;
administrator. Currently mailto:or@oersted.dtu.dk&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Configure CVS environment variables&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Make sure that you have configured your CVS program&lt;br /&gt;
to use &amp;#039;&amp;#039;secure shell&amp;#039;&amp;#039; (ssh) for logins. How this is done&lt;br /&gt;
varies from program to program and a complete coverage of&lt;br /&gt;
all available programs are beyond the scope of this document.&lt;br /&gt;
&lt;br /&gt;
On GNU/Linux or *NIX you have to set the environment&lt;br /&gt;
variable CVSROOT and CVS_RSH to&lt;br /&gt;
&amp;#039;&amp;#039;USERNAME@little:/shome/cvs/repository&amp;#039;&amp;#039; and &amp;#039;&amp;#039;ssh&amp;#039;&amp;#039;&lt;br /&gt;
respectively. Change the &amp;#039;&amp;#039;USERNAME&amp;#039;&amp;#039; to the name of the&lt;br /&gt;
account you&amp;#039;ll using to check out CVS modules. How this&lt;br /&gt;
is done in practise is dependant on what shell you are&lt;br /&gt;
using. If you are using the Bourne Again Shell (BASH) you&lt;br /&gt;
can set the variables with the &amp;#039;&amp;#039;export&amp;#039;&amp;#039; command:&lt;br /&gt;
&amp;#039;&amp;#039;export CVS_RSH=ssh&amp;#039;&amp;#039;. If you are using another shell&lt;br /&gt;
consult that shell&amp;#039;s documentation to see how variables&lt;br /&gt;
are set.&lt;br /&gt;
&lt;br /&gt;
It is usually a good idea to set at least the CVS_RSH&lt;br /&gt;
variables in your shell configuration files so they will&lt;br /&gt;
be automatically set for you when you login, but this is&lt;br /&gt;
not absolutely necessary. See your shell&amp;#039;s documentation&lt;br /&gt;
to see what files should be edited to set this up.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Do a &amp;#039;checkout&amp;#039; of a module&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To get access to the files in a CVS module you have to&lt;br /&gt;
do a &amp;#039;checkout&amp;#039; on it first. Do the following:&lt;br /&gt;
   1. Start a terminal and enter the directory where you want the modules to be placed (as subdirectories).&lt;br /&gt;
   1. Set the environment variables as explained above.&lt;br /&gt;
   1. Run the command &amp;#039;&amp;#039;cvs checkout MODULE&amp;#039;&amp;#039; where &amp;#039;&amp;#039;MODULE&amp;#039;&amp;#039; is replaced by name of one of the modules listed above.&lt;br /&gt;
&lt;br /&gt;
You will probably be prompted for a password at this stage&lt;br /&gt;
as CVS tries to connect to the server via SSH. Enter your&lt;br /&gt;
password and press Enter.&lt;br /&gt;
&lt;br /&gt;
If your password is accepted and everything goes well you&lt;br /&gt;
should now see a list of filenames. These are all the files&lt;br /&gt;
that exist in the module you have just checked&lt;br /&gt;
out. Each filename is preceded by a capital &amp;#039;&amp;#039;U&amp;#039;&amp;#039; telling you&lt;br /&gt;
that the file has been &amp;#039;&amp;#039;U&amp;#039;&amp;#039;pdated.&lt;br /&gt;
&lt;br /&gt;
When all the files have been copied from the CVS server&lt;br /&gt;
you can enter the new directory (it has the same name as the&lt;br /&gt;
module you checked out) and start editing the files.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Checking for updates&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
To see if any of the other developers have submitted any&lt;br /&gt;
changes to a module you are working on go into that module&amp;#039;s&lt;br /&gt;
directory and type &amp;#039;&amp;#039;cvs update -d&amp;#039;&amp;#039;. It is not necessary to&lt;br /&gt;
set the CVSROOT variable, but you have to set CVS_RSH or&lt;br /&gt;
CVS will not know that it should use ssh to make the&lt;br /&gt;
connection.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;-d&amp;#039;&amp;#039; option specifies that any new directories should&lt;br /&gt;
be created in your working copy of the module. It is&lt;br /&gt;
possible to turn this on by default by adding a line with &amp;#039;&amp;#039;update -d&amp;#039;&amp;#039; to the &amp;#039;&amp;#039;.cvsrc&amp;#039;&amp;#039; file located in your home&lt;br /&gt;
directory.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Submitting your changes&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
When you have finished editing the files in the module go&lt;br /&gt;
to the top level directory for that module. There you run&lt;br /&gt;
the command &amp;#039;&amp;#039;cvs commit&amp;#039;&amp;#039; that will contact the CVS server&lt;br /&gt;
and &amp;#039;inform&amp;#039; it of your changes. You will be asked to give&lt;br /&gt;
some comments on your changes during this process.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Adding new files&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
CVS only works on files that has actively been added to the&lt;br /&gt;
repository. This means that if you create new directories and&lt;br /&gt;
files for a module you have to manually add them. This is done&lt;br /&gt;
by issuing a &amp;#039;&amp;#039;cvs add FILENAME&amp;#039;&amp;#039; for each file or directory&lt;br /&gt;
you have created.&lt;br /&gt;
&lt;br /&gt;
Note that this should only be done for files that are actually&lt;br /&gt;
needed by the other developers. Files that are automatically&lt;br /&gt;
generated (dependency files made by build processes, object&lt;br /&gt;
files etc) should not be added.&lt;br /&gt;
&lt;br /&gt;
If you need to add a binary file (e.g. an image file) use&lt;br /&gt;
the command &amp;#039;&amp;#039;cvs add -kb FILENAME&amp;#039;&amp;#039; to let the CVS server&lt;br /&gt;
know that the file should not be searched for CVS keywords&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Creating a brand new CVS module&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Change directory into the root of the source code directory structure you want &lt;br /&gt;
to add. Then to create an entirely new module on the CVS server set your&lt;br /&gt;
CVSROOT environment variable and type the following:&lt;br /&gt;
   * cvs import MODULENAME VENDORTAG RELEASETAG&lt;br /&gt;
Be sure to use the name of your module instead of MODULENAME.&lt;br /&gt;
The two tags will usually be your initials, e.g. &amp;#039;&amp;#039;sra&amp;#039;&amp;#039;, and&lt;br /&gt;
the word &amp;#039;&amp;#039;initial&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Further information&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The CVS Manual and a lot of tips and tricks can be found at:&lt;br /&gt;
&lt;br /&gt;
http://www.cvshome.org/&lt;/div&gt;</summary>
		<author><name>Lvm</name></author>
	</entry>
</feed>