[lkml]   [2002]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Changelogs on
Date (Linus Torvalds) writes:

> Perl is the obvious choice for doing transformations like these. Is
> anybody willing to write a perl script that does the "sort by author"
> thing?

#!/usr/bin/perl -w
# Reformat 2.4 ChangeLog

use strict;

my %authors = ();
my $current;

while (<>) {
if (/^</) {
if (exists $authors{$_}) {
$current = $authors{$_};
} else {
$current = $authors{$_} = [];
} else {
die "illegal format" unless defined $current;
push @$current, $_;

my $author;
foreach $author (sort keys %authors) {
print "$author\n";
$_ = join "\n", @{$authors{$author}};
# Add empty line before next author.

For your example, the result is:

A bunch of fixes.

Pmac updates

Some more small fixes.

[PATCH] 2.5.13: vmalloc link failure

The following patch fixes this, and also fixes the similar problem in

[PATCH] in_ntoa link failure

Nothing serious. Whoever it was that did that global replacemissed a
spot is all...

[PATCH] change_floppy() fix

Needed both in 2.4 and 2.5

IMHO, it doesn't make much sense.

Florian Weimer Weimer@CERT.Uni-Stuttgart.DE
University of Stuttgart http://CERT.Uni-Stuttgart.DE/people/fw/
RUS-CERT +49-711-685-5973/fax +49-711-685-5898
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:26    [W:0.189 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site