Fixes for developer checkout (no port and no password)

This commit is contained in:
Zone 2002-01-13 02:34:08 +00:00
parent 9783df1431
commit a9a15a449d
2 changed files with 7 additions and 19 deletions

View File

@ -25,7 +25,6 @@
$cvs_anonymous = True; $cvs_anonymous = True;
// Only needed if you have developers cvs access // Only needed if you have developers cvs access
$cvs_login = ''; $cvs_login = '';
$cvs_password = '';
// Modules you want to checkout, do NOT add the phpgroupware module // Modules you want to checkout, do NOT add the phpgroupware module
@ -93,7 +92,7 @@
function docvscommand($command, $anonymous_login = False) function docvscommand($command, $anonymous_login = False)
{ {
global $tmp_dir, $cvs_password, $cvs_anonymous; global $tmp_dir, $cvs_anonymous;
$fp = fopen($tmp_dir . '/createrelease.exp','w'); $fp = fopen($tmp_dir . '/createrelease.exp','w');
$contents = "#!/usr/bin/expect -f\n"; $contents = "#!/usr/bin/expect -f\n";
@ -110,12 +109,7 @@
$contents .= "spawn $command\n"; $contents .= "spawn $command\n";
$contents .= "match_max 100000\n"; $contents .= "match_max 100000\n";
if (! $cvs_anonymous) if ($cvs_anonymous && $anonymous_login)
{
$contents .= "expect \":\"\n";
$contents .= "send -- \"" . $cvs_password . "\\r\"\n";
}
else if ($cvs_anonymous && $anonymous_login)
{ {
$contents .= "expect \"CVS password:\"\n"; $contents .= "expect \"CVS password:\"\n";
$contents .= "send -- \"\\r\"\n"; $contents .= "send -- \"\\r\"\n";
@ -136,7 +130,7 @@
} }
else else
{ {
docvscommand('cvs -d' . $cvs_login . '@subversions.gnu.org:443/cvsroot/phpgroupware co phpgroupware'); docvscommand('cvs -d' . $cvs_login . '@subversions.gnu.org:/cvsroot/phpgroupware co phpgroupware');
} }
chdir($co_dir . '/phpgroupware'); chdir($co_dir . '/phpgroupware');
@ -147,7 +141,7 @@
} }
else else
{ {
docvscommand('cvs -d' . $cvs_login . '@subversions.gnu.org:443/cvsroot/phpgroupware co ' . implode(' ',$co_modules)); docvscommand('cvs -d' . $cvs_login . '@subversions.gnu.org:/cvsroot/phpgroupware co ' . implode(' ',$co_modules));
} }
docvscommand('cvs update -dP'); docvscommand('cvs update -dP');

View File

@ -23,7 +23,6 @@
$cvs_anonymous = True; $cvs_anonymous = True;
# Only needed if you have developers cvs access # Only needed if you have developers cvs access
$cvs_login = ''; $cvs_login = '';
$cvs_password = '';
# Modules you want to checkout, do NOT add the phpgroupware module # Modules you want to checkout, do NOT add the phpgroupware module
@co_modules = ( @co_modules = (
@ -110,12 +109,7 @@
$contents .= "spawn $command\n"; $contents .= "spawn $command\n";
$contents .= "match_max 100000\n"; $contents .= "match_max 100000\n";
if (!$cvs_anonymous) if ($cvs_anonymous and $anonymous_login)
{
$contents .= "expect \":\"\n";
$contents .= "send -- \"" . $cvs_password . "\\r\"\n";
}
elsif ($cvs_anonymous and $anonymous_login)
{ {
$contents .= "expect \"CVS password:\"\n"; $contents .= "expect \"CVS password:\"\n";
$contents .= "send -- \"\\r\"\n"; $contents .= "send -- \"\\r\"\n";
@ -136,7 +130,7 @@
} }
else else
{ {
&docvscommand('cvs -d' . $cvs_login . '@subversions.gnu.org:443/cvsroot/phpgroupware co phpgroupware'); &docvscommand('cvs -d' . $cvs_login . '@subversions.gnu.org:/cvsroot/phpgroupware co phpgroupware');
} }
chdir($co_dir . '/phpgroupware'); chdir($co_dir . '/phpgroupware');
@ -147,7 +141,7 @@
} }
else else
{ {
&docvscommand('cvs -d' . $cvs_login . '@subversions.gnu.org:443/cvsroot/phpgroupware co ' . join(' ',@co_modules)); &docvscommand('cvs -d' . $cvs_login . '@subversions.gnu.org:/cvsroot/phpgroupware co ' . join(' ',@co_modules));
} }
&docvscommand('cvs update -dP'); &docvscommand('cvs update -dP');