summaryrefslogtreecommitdiffstats
path: root/tools/build-info.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build-info.pl')
-rwxr-xr-xtools/build-info.pl28
1 files changed, 28 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 @@
+#!/usr/bin/perl
+# __________ __ ___.
+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
+# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+# \/ \/ \/ \/ \/
+#
+# Generate the build-info.release file found on download.rockbox.org
+
+require "./builds.pm";
+
+print "[release]\n";
+
+foreach my $b (&stablebuilds) {
+ if(exists($builds{$b}{release})) {
+ print "$b=$builds{$b}{release}\n";
+ }
+ else {
+ print "$b=$publicrelease\n";
+ }
+}
+
+print "[status]\n";
+
+foreach my $b (&allbuilds) {
+ print "$b=$builds{$b}{status}\n";
+}