3 ###########################################################################
5 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
6 # Source | _ / _ \_/ ___\| |/ /| __ \ / _ \ \/ /
7 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
8 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
12 # Copyright (C) 2010 Robert Bieber
14 # This program is free software; you can redistribute it and/or
15 # modify it under the terms of the GNU General Public License
16 # as published by the Free Software Foundation; either version 2
17 # of the License, or (at your option) any later version.
19 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 # KIND, either express or implied.
22 ############################################################################/
24 require '../../tools/builds.pm';
26 open(FOUT
, ">targets.php");
28 print FOUT
'<?php $targets = array(';
30 @keys = sort byname
keys %builds;
32 $final = @keys[$size - 1];
37 $name = $builds{$b}{name
};
40 print FOUT
"\"$key\"" . "=>" . '"' . $name . '"' if ($builds{$b}{status
} >= 3);
41 print FOUT
',' if $b ne $final && $builds{$b}{status
} >= 3;
48 $name = $builds{$b}{name
};
51 print FOUT
"\"$key\"" . "=>" . '"' . $name . '"' if ($builds{$b}{status
} < 3);
52 print FOUT
',' if $b ne $final && $builds{$b}{status
} < 3;