[banshee] [extras] Improvements to create-contributors-paragraph script



commit 9c1aa2b66cd91fd19d1bbf2e826af8cb25aafb17
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Tue Feb 23 21:44:16 2010 +0100

    [extras] Improvements to create-contributors-paragraph script
    
    Include artists in the list and really sort the contributors by name.

 extras/create-contributors-paragraph |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/extras/create-contributors-paragraph b/extras/create-contributors-paragraph
index 4777e59..327f6ce 100755
--- a/extras/create-contributors-paragraph
+++ b/extras/create-contributors-paragraph
@@ -4,15 +4,14 @@ open (IN, '../src/Core/Banshee.Core/Resources/contributors.xml');
 
 my @names;
 while (my $line = readline(IN)) {
-    if ($line !~ m/artist/i and $line =~ m/>([^<]+)</) {
+    if ($line =~ m/>([^<]+)</) {
         push @names, $1;
     }
 }
-sort (@names);
+ names= sort (@names);
 
 my $i = 80;
 my $indent = 4;
-my $j = 1;
 
 foreach my $name (@names) {
     if ($i + length($name) + 2 >= 80) {
@@ -24,7 +23,6 @@ foreach my $name (@names) {
     print $name;
     print ", ";
     $i += length ($name) + 2;
-    $j++;
 }
 print "\n";
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]