summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2019-10-30 23:56:05 -0400
committerFranklin Wei <franklin@rockbox.org>2019-10-30 23:56:05 -0400
commitec8b3d31470bd612d50a3fd6e60589d30a38230c (patch)
tree1bb6e9793b0a07db08f3f1a8a2b66efb3693da18 /tools
parent19c154fe8ff25c4194abd34a649a2e3b51ea6c61 (diff)
downloadrockbox-ec8b3d31470bd612d50a3fd6e60589d30a38230c.tar.gz
rockbox-ec8b3d31470bd612d50a3fd6e60589d30a38230c.zip
Add some scripts to automate target listing and generating build-info
This adds tools/list_targets.pl and tools/build-info.pl. list_targets does exactly what it sounds like - it lists targets by target status. build-info automates the generation of build-info.release for new releases. Change-Id: I4c859fdeb54c8cc645832a7c4192f9d18590031e
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build-info.pl28
-rwxr-xr-xtools/list_targets.pl27
2 files changed, 55 insertions, 0 deletions
diff --git a/tools/build-info.pl b/tools/build-info.pl
new file mode 100755
index 0000000000..157e29fb1b
--- /dev/null
+++ b/tools/build-info.pl
@@ -0,0 +1,28 @@
1#!/usr/bin/perl
2# __________ __ ___.
3# Open \______ \ ____ ____ | | _\_ |__ _______ ___
4# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7# \/ \/ \/ \/ \/
8#
9# Generate the build-info.release file found on download.rockbox.org
10
11require "./builds.pm";
12
13print "[release]\n";
14
15foreach my $b (&stablebuilds) {
16 if(exists($builds{$b}{release})) {
17 print "$b=$builds{$b}{release}\n";
18 }
19 else {
20 print "$b=$publicrelease\n";
21 }
22}
23
24print "[status]\n";
25
26foreach my $b (&allbuilds) {
27 print "$b=$builds{$b}{status}\n";
28}
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 @@
1#!/usr/bin/perl
2# __________ __ ___.
3# Open \______ \ ____ ____ | | _\_ |__ _______ ___
4# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7# \/ \/ \/ \/ \/
8#
9# List all targets in builds.pm, categorized by target status.
10
11require "./builds.pm";
12
13print "Stable:\n";
14
15for my $b (&stablebuilds) {
16 print $builds{$b}{name} , "\n";
17}
18
19print "Unstable:\n";
20for my $b (&usablebuilds) {
21 print $builds{$b}{name} , "\n";
22}
23
24print "Unusable:\n";
25for my $b (&allbuilds) {
26 print $builds{$b}{name} , "\n" if($builds{$b}{status} == 1);
27}