summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-15 07:48:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-15 07:48:45 +0000
commit48be942fcbad4fef3e16e2eeb963b78114c0faca (patch)
treed19710f27711bbf66b54b459ac4f6eac9ea15a43
parent90f0df801183b46d967a10a4db1842f5649c637f (diff)
downloadrockbox-48be942fcbad4fef3e16e2eeb963b78114c0faca.tar.gz
rockbox-48be942fcbad4fef3e16e2eeb963b78114c0faca.zip
This is a little script that extracts all the names from the docs/CREDITS
file and output them suitably for inclusion in credits.c. I would've used an awk script for this but I guess the windows people wouldn't like that. Anyway for the record, I actually used 'a2p' with my awk hack { if(a && length($1)) print $0} /Friend/ {a++;} The perl version is slightly larger. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2637 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/credits.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/credits.pl b/apps/credits.pl
new file mode 100644
index 0000000000..3d3945d2ad
--- /dev/null
+++ b/apps/credits.pl
@@ -0,0 +1,10 @@
1while (<STDIN>) {
2 chomp; # strip record separator
3 my @Fld = split(' ', $_, 9999);
4 if ($a && length($Fld[1])) {
5 print "\"$_\",\n";
6 }
7 if (/Friend/) {
8 $a++;
9 }
10}