summaryrefslogtreecommitdiffstats
path: root/tools/build-info.pl
blob: 157e29fb1ba9cd215171d3856048f220b2a3ee1c (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
#!/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";
}