summaryrefslogtreecommitdiffstats
path: root/tools/list_targets.pl
blob: 9785bb5f22ec1507f43d1761e47e997fc2d6b9eb (plain)
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
32
33
34
35
36
37
38
#!/usr/bin/perl
#             __________               __   ___.
#   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
#   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
#   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
#   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
#                     \/            \/     \/    \/            \/
#
# List all targets in builds.pm, categorized by target status.

require "./builds.pm";

print "Retired:\n";

for my $b (&stablebuilds) {
    print "   " , $builds{$b}{name} , "\n" if($builds{$b}{status} == 0);
}

print "Stable:\n";

for my $b (&stablebuilds) {
    print "   " , $builds{$b}{name} , "\n" if($builds{$b}{status} != 0);
}

print "Unstable:\n";
for my $b (&usablebuilds) {
    print "   " , $builds{$b}{name} , "\n";
}

print "Unusable:\n";
for my $b (&allbuilds) {
    print "   " , $builds{$b}{name} , "\n" if($builds{$b}{status} == 1);
}

print "Simulators:\n";
for my $b (&simbuilds) {
    print "   " , $builds{$b}{name} , "\n";
}