<!-- Savannah - CVS short help about dev access -->
<!-- $Id: index_dev.txt,v 1.8 2004/01/31 00:56:17 yeupou Exp $ BEGIN -->

<h3>Project Member CVS Access via SSH </h3>

<?php
// This file is part of the Savane project
// <http://gna.org/projects/savane/>
//
// $Id: index_dev.txt,v 1.8 2004/01/31 00:56:17 yeupou Exp $
// 
	global $project;
?>

<p>
Only <?php print '<a href="'.$GLOBALS['sys_home'].'project/memberlist.php?group='.$GLOBALS['group_name'].'">project members</a>'; ?> can access the CVS tree via this method. SSH1 (Version 1, RSA) must be installed on your client machine. If you have SSH version two, add 
<pre>
Host subversions.gnu.org
     Protocol 1
</pre> 
in your <b>~/.ssh/config</b> file, even if you think that your SSH will switch to protocol 1 automatically. Substitute
<i>membername</i> with the proper value. 
<font class="error">Your savannah password is useless for cvs. You have to register a CVS/SSH
Shared key in the <a href="<?php print $GLOBALS['sys_home']; ?>account/editsshkeys.php">Account Maintenance</a>
 page for the machine from which you run cvs</font>.
</p>

<?php
// This file is part of the Savane project
// <http://gna.org/projects/savane/>
//
// $Id: index_dev.txt,v 1.8 2004/01/31 00:56:17 yeupou Exp $
//

$username = user_getname();
if ($username == "NA") {
	// for anonymous user :
	$username = '&lt;<em>membername</em>&gt;';
}
if ($project->CanUse("cvs")) {
	print '<h4>Software repository :</h4>';
	print '<p><pre>export CVS_RSH=ssh'."\n\n";
	print 'cvs -z3 -d '.$username.'@'.$project->getTypeBaseHost().':'.
	$project->getTypeDir("cvs").$project->getUnixName().' co &lt;<em>modulename</em>&gt;</pre></p>';

	print '<h4>Webpages repository :</h4>';
	print '<p><pre>export CVS_RSH=ssh'."\n\n";
	print 'cvs -z3 -d '.$username.'@'.$project->getTypeBaseHost().':'.
	ereg_replace('/$', "", $project->getTypeDir("homepage")).' co '.$project->getUnixName().'
	</pre></p>';
}
?>
<!-- $Id: index_dev.txt,v 1.8 2004/01/31 00:56:17 yeupou Exp $  END -->
