X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Porting%2Fgenlog;h=610e9762a1432a5622443b9b019408d4afa245e2;hb=906bad61c3bd0dd3a56a226b2981e4d14d5e71c9;hp=98bccdd7025d78f5fc7b32e4fa18974cf5e68bbb;hpb=23b3bd7f4ea04a410bbe9a0b67cf4dbaa82b6992;p=p5sagit%2Fp5-mst-13.2.git diff --git a/Porting/genlog b/Porting/genlog index 98bccdd..610e976 100755 --- a/Porting/genlog +++ b/Porting/genlog @@ -16,6 +16,7 @@ # use Text::Wrap; +use Text::Tabs; $0 =~ s|^.*/||; unless (@ARGV) { @@ -69,6 +70,7 @@ if ($?) { die "$0: `p4 -p $p4port describe -s @changes` failed, status[$?]\n"; } else { + tr/\r/\n/ foreach @desc; chomp @desc; while (@desc) { my ($change,$who,$date,$time,@log,$branch,$file,$type,%files); @@ -106,11 +108,11 @@ else { } } next if ((not $change) or $skip); - print "_" x 76, "\n"; - printf < 25 && ($kind eq 'integrate' || $kind eq 'branch')) || @$files > 100; - print wrap(sprintf("%12s ", $editkind{$kind}), - sprintf("%12s ", $editkind{$kind}), - "@$files\n"); + $output .= wrap(sprintf("%12s ", $editkind{$kind}), + sprintf("%12s ", $editkind{$kind}), + "@$files\n"); } } + print unexpand($output); } }