diff options
author | Mystery Man <unknown@mandriva.org> | 2002-07-23 11:21:56 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2002-07-23 11:21:56 +0000 |
commit | c085ce28d15d1476cae3fcb6d24d4d5ac1ca3aa7 (patch) | |
tree | 09f4686118e32ec13377577bbbd0f08e8120836c /tools/cvslog2changelog.pl | |
parent | 127a73d935d78af53d3dadd05d4636f6b717976d (diff) | |
download | drakx-c085ce28d15d1476cae3fcb6d24d4d5ac1ca3aa7.tar drakx-c085ce28d15d1476cae3fcb6d24d4d5ac1ca3aa7.tar.gz drakx-c085ce28d15d1476cae3fcb6d24d4d5ac1ca3aa7.tar.bz2 drakx-c085ce28d15d1476cae3fcb6d24d4d5ac1ca3aa7.tar.xz drakx-c085ce28d15d1476cae3fcb6d24d4d5ac1ca3aa7.zip |
This commit was manufactured by cvs2svn to create tag 'V1_1_8_13mdk'.V1_1_8_13mdk
Diffstat (limited to 'tools/cvslog2changelog.pl')
-rwxr-xr-x | tools/cvslog2changelog.pl | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/tools/cvslog2changelog.pl b/tools/cvslog2changelog.pl deleted file mode 100755 index a9c4a71bc..000000000 --- a/tools/cvslog2changelog.pl +++ /dev/null @@ -1,80 +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@mandrakesoft.com>', - 'fpons' => 'François Pons <fpons@mandrakesoft.com>', - 'pablo' => 'Pablo Saratxaga <pablo@mandrakesoft.com>', - 'damien' => 'dam\'s <damien@mandrakesoft.com>', - 'install' => 'DrakX <install@mandrakesoft.com>', - 'prigaux' => 'Pixel <pixel@mandrakesoft.com>', - 'flepied' => 'Frederic Lepied <flepied@mandrakesoft.com>', - 'chmouel' => 'Chmouel Boudjnah <chmouel@mandrakesoft.com>', - 'uid526' => 'dam\'s <damien@mandrakesoft.com>', - 'uid533' => 'François Pons <fpons@mandrakesoft.com>', - 'uid535' => 'Guillaume Cottenceau <gc@mandrakesoft.com>', - 'uid553' => 'Pixel <pixel@mandrakesoft.com>', - 'tvignaud' => 'Thierry Vignaud <tvignaud@mandrakesoft.com>', - 'sbenedict'=>'Stew Benedict <sbenedict@mandrakesoft.com>', - 'tkamppeter' => 'Till Kamppeter <till@mandrakesoft.com>', - 'yduret' => 'Yves Duret <yduret@mandrakesoft.com>', - 'daouda' => 'Daouda Lo <daouda@mandrakesoft.com>', - 'dchaumette' => 'Damien Chaumette <dchaumette@mandrakesoft.com>', - 'cbelisle' => 'Christian Belisle <cbelisle@mandrakesoft.com>', - ); -} |