| version 1.25, 2003/01/11 13:47:21 |
version 1.26, 2005/02/07 22:38:46 |
|
|
| // Copyright (c) 2002-2003 Platon SDG, http://www.platon.sk/
|
// Copyright (c) 2002-2003 Platon SDG, http://www.platon.sk/
|
| // Licensed under terms of GNU General Public License
|
// Licensed under terms of GNU General Public License
|
|
|
|
| // $Platon: parsecvs.php,v 1.24 2002/06/17 07:48:49 karas9 Exp $
|
// $Platon: scripts/php/parsecvs/parsecvs.php,v 1.25 2003/01/11 13:47:21 nepto Exp $
|
|
|
|
| #
|
#
|
| # CONSTANTS
|
# CONSTANTS
|
|
|
| $user_format = '^CVSUSER=([0-9a-zA-Z]*)';
|
$user_format = '^CVSUSER=([0-9a-zA-Z]*)';
|
| $directory_format = '^In directory';
|
$directory_format = '^In directory';
|
| $project_name_format = '^Update of /home/cvs/(.*)';
|
$project_name_format = '^Update of /home/cvs/(.*)';
|
| |
$cvsweblink_format = '^(http:[^ ]*)';
|
| $tag_oper_begin = '^Tag operation: (.*)$';
|
$tag_oper_begin = '^Tag operation: (.*)$';
|
| $tag_name_begin = '^Tag name: (.*)$';
|
$tag_name_begin = '^Tag name: (.*)$';
|
| $add_files_begin = '^Added Files:';
|
$add_files_begin = '^Added Files:';
|
|
|
| $reports[$j]['directory'] = trim($regs[1]);
|
$reports[$j]['directory'] = trim($regs[1]);
|
| }
|
}
|
|
|
|
| |
// CVSWEB link
|
| |
if (ereg($cvsweblink_format, $in[$i], $regs)) {
|
| |
// only URL
|
| |
$reports[$j]['cvsweblink'] =
|
| |
array_merge($reports[$j]['cvsweblink'], trim($regs[1]));
|
| |
}
|
| |
|
| // TAG OPERATION
|
// TAG OPERATION
|
| if (ereg($tag_oper_begin, $in[$i], $regs)) {
|
if (ereg($tag_oper_begin, $in[$i], $regs)) {
|
| //$reports[$j]['tag_operation'][0] = trim($regs[1]);
|
//$reports[$j]['tag_operation'][0] = trim($regs[1]);
|
|
|
| $m['log_msg']
|
$m['log_msg']
|
| ) . "\n");
|
) . "\n");
|
| }
|
}
|
| |
|
| |
// LOG MESSAGES
|
| |
if (is_array($m['cvsweblink'])) {
|
| |
fwrite($out, "CVSweb URL:\n");
|
| |
|
| |
fwrite($out, $log_message_folding .
|
| |
implode("\n$log_message_folding",
|
| |
$m['cvsweblink']
|
| |
) . "\n");
|
| |
}
|
| |
|
| $i++;
|
$i++;
|
| }
|
}
|
|
|
|