1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: rbclient.pl
===================================================================
--- rbclient.pl  (revision 22027)
+++ rbclient.pl  (working copy)
@@ -35,6 +35,7 @@
 my $buildmaster = $buildmaster || 'buildmaster.rockbox.org';
 my $port = $port || 19999;
 my $ulspeed = $ulspeed || 0;
+my $msgscript = $msgscript || '';

 my $upload = "http://$buildmaster/upload.pl";

@@ -94,6 +95,9 @@
 -ulspeed=[speed]
   Limit upload speed to max [speed] kilobytes per second.

+-msgscript=[script]
+  Run this script whenever a MESSAGE comes in, with the message on the command line
+
 You can also specify -config=file where parameters are stored as 'label: value'

 MOO
@@ -483,6 +487,9 @@
 sub MESSAGE
 {
     tprint "Server message: @_\n";
+    if($msgscript != '') {
+        `$msgscript "@_"`;
+    }
     print $sock "_MESSAGE\n";
 }