[banshee] Add script that will generate the list of contributors for NEWS from the contributors.xml
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee] Add script that will generate the list of contributors for NEWS from the contributors.xml
- Date: Thu, 21 May 2009 17:35:39 -0400 (EDT)
commit e2e4d91d970ae777b0982968c7bef5a4cb51a46b
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu May 21 15:42:13 2009 -0500
Add script that will generate the list of contributors for NEWS from the contributors.xml
---
build/create-contributors-paragraph | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/build/create-contributors-paragraph b/build/create-contributors-paragraph
new file mode 100755
index 0000000..4777e59
--- /dev/null
+++ b/build/create-contributors-paragraph
@@ -0,0 +1,31 @@
+#!/usr/bin/perl
+
+open (IN, '../src/Core/Banshee.Core/Resources/contributors.xml');
+
+my @names;
+while (my $line = readline(IN)) {
+ if ($line !~ m/artist/i and $line =~ m/>([^<]+)</) {
+ push @names, $1;
+ }
+}
+sort (@names);
+
+my $i = 80;
+my $indent = 4;
+my $j = 1;
+
+foreach my $name (@names) {
+ if ($i + length($name) + 2 >= 80) {
+ $i = $indent - 1;
+ print "\n";
+ print ' ' x $indent;
+ }
+
+ print $name;
+ print ", ";
+ $i += length ($name) + 2;
+ $j++;
+}
+print "\n";
+
+close (IN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]