summaryrefslogtreecommitdiffstats
path: root/tools/list_targets.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/list_targets.pl')
-rwxr-xr-xtools/list_targets.pl27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/list_targets.pl b/tools/list_targets.pl
new file mode 100755
index 0000000000..039c14f0db
--- /dev/null
+++ b/tools/list_targets.pl
@@ -0,0 +1,27 @@
+#!/usr/bin/perl
+# __________ __ ___.
+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
+# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+# \/ \/ \/ \/ \/
+#
+# List all targets in builds.pm, categorized by target status.
+
+require "./builds.pm";
+
+print "Stable:\n";
+
+for my $b (&stablebuilds) {
+ print $builds{$b}{name} , "\n";
+}
+
+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);
+}