From: Ricardo Markiewicz Date: Wed, 3 Dec 2003 22:44:54 +0000 (+0000) Subject: Se saca el feo awk y se hacen las cosas con perl X-Git-Tag: svn_import~25 X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/commitdiff_plain/98912c7ab789d2f5d07057e3e27f3562fd521af1?ds=inline Se saca el feo awk y se hacen las cosas con perl --- diff --git a/log_trace.pl b/log_trace.pl index a755f3c..40d2fe8 100755 --- a/log_trace.pl +++ b/log_trace.pl @@ -6,7 +6,7 @@ # # The PlaQui Development Team -my %hash, %users, $texto. $max; +my %hash, %users, %commits, $texto. $max; if (shift eq "-d") { $texto = `svn log > ChangeLog`; @@ -20,6 +20,7 @@ foreach $line (@lines) { @datos = split(/ /, $line); $hash{$datos[5]}++; $users{$datos[5]}{$datos[3]}++; + $commits{$datos[3]}++; if ($hash{$datos[5]} > $max) { $max = $hash{$datos[5]}; } @@ -58,7 +59,9 @@ foreach $date (sort keys %hash) { print "\n"; print "Cantidad de commits por usuario:\n"; -print `egrep "rev [0-9]+" ChangeLog | awk '{print \$3}' | sort | uniq -c | sort -r`; +foreach $user (sort keys %commits) { + print "\t$user\t$commits{$user}\n"; +} print "\n"; print "( ) = Máximo/s Commiteador/es del Día | "; print "* == 2 Commit\n";