diff options
author | Mystery Man <unknown@mandriva.org> | 2005-10-20 14:05:54 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2005-10-20 14:05:54 +0000 |
commit | 9b6a0d83d135fad376b4eadcb2bd7bd8c8a07aa5 (patch) | |
tree | f3ef7ada2ce82dafb6d41cc087b0cc7fdfc40a46 /tools/cvslog2changelog.pl | |
parent | 3e4ad5e1b687f262a1d7cc39a0b905a595ac7f95 (diff) | |
download | drakx-9b6a0d83d135fad376b4eadcb2bd7bd8c8a07aa5.tar drakx-9b6a0d83d135fad376b4eadcb2bd7bd8c8a07aa5.tar.gz drakx-9b6a0d83d135fad376b4eadcb2bd7bd8c8a07aa5.tar.bz2 drakx-9b6a0d83d135fad376b4eadcb2bd7bd8c8a07aa5.tar.xz drakx-9b6a0d83d135fad376b4eadcb2bd7bd8c8a07aa5.zip |
This commit was manufactured by cvs2svn to create tagV10_34_11_100mdk
'V10_34_11_100mdk'.
Diffstat (limited to 'tools/cvslog2changelog.pl')
-rwxr-xr-x | tools/cvslog2changelog.pl | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/tools/cvslog2changelog.pl b/tools/cvslog2changelog.pl deleted file mode 100755 index 9eab56884..000000000 --- a/tools/cvslog2changelog.pl +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/perl - -while (<>) { - if ($e = /^description:/ .. /^={77}/) { - next if $e == 1 || $e =~ /E0/; - if (/^-{28}/ .. /^date: /) { - if (/^date: (\S+)\s.*author: (\S+);/) { - ($date, $user) = ($1, $2); - } - } elsif (!/^branches: / && !/file .* was initially added on branch/ && !/empty log message/ && !/no_comment/) { - $l{$date}{$user}{$file} .= $_; - } - } elsif (/Working file: (.*)/) { - $file = $1; - } -} - -foreach $date (reverse sort keys %l) { - foreach $user (sort keys %{$l{$date}}) { - $fuser = $users{$user} || $user; - print "$date $fuser\n\n"; - my %inv; - while (($file, $log) = each %{$l{$date}{$user}}) { - $log =~ s/^\s+( \*)?//ms; - $log =~ s/\s+$//ms; - $log = "\n$log" if $log =~ /^-/; - push @{$inv{$log}}, $file; - } - foreach $log (keys %inv) { - $line = join(', ', @{$inv{$log}}) . ($log !~ /^\(/ && ':') . " $log"; - print "\t* ", join("\n\t", auto_fill($line, 72)), "\n\n"; - } - } -} - -1; - -sub auto_fill { - my ($line, $col) = @_; - map { - my @l; - my $l = ''; - $_ = " $_" if /^-/; - while ($_) { - s/^(\s*)(\S*)//; - my $m = "$l$1$2"; - if (length $m > $col) { - push @l, $l; - $l = $2; - } else { - $l = $m - } - } - @l, $l; - } split("\n", $line); -} - -BEGIN { - %users = ( - 'gc' => 'Guillaume Cottenceau <gc at mandrakesoft.com>', - 'pablo' => 'Pablo Saratxaga <pablo at mandrakesoft.com>', - 'damien' => 'dam\'s <dams at idm.fr>', - 'install' => 'DrakX <install at mandrakesoft.com>', - 'prigaux' => 'Pixel <pixel at mandrakesoft.com>', - 'flepied' => 'Frederic Lepied <flepied at mandrakesoft.com>', - 'tvignaud' =>'Thierry Vignaud <tvignaud at mandrakesoft.com>', - 'sbenedict'=>'Stew Benedict <sbenedict at mandrakesoft.com>', - 'tkamppeter'=>'Till Kamppeter <till at mandrakesoft.com>', - 'daouda' => 'Daouda Lo <daouda at mandrakesoft.com>', - 'dchaumette' => 'Damien Chaumette <dchaumette at mandrakesoft.com>', - 'warly' => 'Warly <warly at mandrakesoft.com>', - 'fcrozat' => 'Frederic Crozat <fcrozat at mandrakesoft.com>', - 'baudens' => 'David Baudens <baudens at mandrakesoft.com>', - 'florin' => 'Florin Grad <florin at mandrakesoft.com>', - 'alafox' => 'Alice Lafox <alice at lafox.com.ua>', - 'alus' => 'Arkadiusz Lipiec <alipiec at elka.pw.edu.pl>', - 'fabman' => 'Fabian Mandelbaum <fabman at 2vias.com.ar>', - 'erwan' => 'Erwan Velu <erwan at mandrakesoft.com>', - 'nplanel' => 'Nicolas Planel <nplanel at mandrakesoft.com>', - ); -} |