summaryrefslogtreecommitdiff
path: root/tools/release
diff options
context:
space:
mode:
Diffstat (limited to 'tools/release')
-rwxr-xr-xtools/release/bins.pl51
-rwxr-xr-xtools/release/manuals.pl41
-rwxr-xr-xtools/release/sims.pl66
-rwxr-xr-xtools/release/voices.pl44
4 files changed, 156 insertions, 46 deletions
diff --git a/tools/release/bins.pl b/tools/release/bins.pl
index 343315808b..b96c7d863c 100755
--- a/tools/release/bins.pl
+++ b/tools/release/bins.pl
@@ -1,8 +1,6 @@
1#!/usr/bin/perl 1#!/usr/bin/perl
2 2
3require "../builds.pm"; 3$version="3.4";
4
5$version=$publicrelease;
6 4
7my $verbose; 5my $verbose;
8if($ARGV[0] eq "-v") { 6if($ARGV[0] eq "-v") {
@@ -75,7 +73,7 @@ sub fonts {
75 chdir "build-$dir"; 73 chdir "build-$dir";
76 print "Build fonts in build-$dir\n" if($verbose); 74 print "Build fonts in build-$dir\n" if($verbose);
77 75
78 # build the fonts 76 # build the manual(s)
79 $a = buildfonts($dir, $confnum, $newl); 77 $a = buildfonts($dir, $confnum, $newl);
80 78
81 chdir ".."; 79 chdir "..";
@@ -100,8 +98,8 @@ sub buildit {
100 98
101 `rm -rf * >/dev/null 2>&1`; 99 `rm -rf * >/dev/null 2>&1`;
102 100
103 my $ram = $extra ? $extra : -1; 101 my $c = sprintf('printf "%s\n%sn\n" | ../tools/configure',
104 my $c = "../tools/configure --type=n --target=$confnum --ram=$ram"; 102 $confnum, $extra);
105 103
106 print "C: $c\n" if($verbose); 104 print "C: $c\n" if($verbose);
107 `$c`; 105 `$c`;
@@ -121,8 +119,8 @@ sub buildfonts {
121 119
122 `rm -rf * >/dev/null 2>&1`; 120 `rm -rf * >/dev/null 2>&1`;
123 121
124 my $ram = $extra ? $extra : -1; 122 my $c = sprintf("printf '%s\n%sn\n' | ../tools/configure",
125 my $c = "../tools/configure --type=n --target=$confnum --ram=$ram"; 123 $confnum, $newl?'\n':'');
126 124
127 print "C: $c\n" if($verbose); 125 print "C: $c\n" if($verbose);
128 `$c`; 126 `$c`;
@@ -135,10 +133,37 @@ sub buildfonts {
135print "cd tools && make\n" if($verbose); 133print "cd tools && make\n" if($verbose);
136`(cd tools && make ) >/dev/null 2>&1`; 134`(cd tools && make ) >/dev/null 2>&1`;
137 135
138for my $b (&stablebuilds) { 136runone("player", "player", '\n');
139 my $configname = $builds{b}{configname} ? $builds{b}{configname} : $b; 137runone("recorder", "recorder", '\n');
140 runone($b, $configname, $builds{b}{ram}); 138runone("recorder8mb", "recorder", '8\n');
141} 139runone("fmrecorder", "fmrecorder", '\n');
140runone("fmrecorder8mb", "fmrecorder", '8\n');
141runone("recorderv2", "recorderv2", '\n');
142runone("ondiosp", "ondiosp", '\n');
143runone("ondiofm", "ondiofm", '\n');
144runone("h100", "h100");
145runone("h120", "h120");
146runone("h300", "h300");
147runone("ipodcolor", "ipodcolor");
148runone("ipodnano", "ipodnano");
149runone("ipod4gray", "ipod4g");
150runone("ipodvideo", "ipodvideo", '32\n');
151runone("ipodvideo64mb", "ipodvideo", '64\n');
152runone("ipod3g", "ipod3g");
153runone("ipod1g2g", "ipod1g2g");
154runone("iaudiox5", "x5");
155runone("iaudiom5", "m5");
156runone("iaudiom3", "m3");
157runone("ipodmini1g", "ipodmini");
158runone("ipodmini2g", "ipodmini2g");
159runone("h10", "h10");
160runone("h10_5gb", "h10_5gb");
161runone("gigabeatf", "gigabeatf");
162runone("sansae200", "e200");
163runone("sansac200", "c200");
164#runone("mrobe500", "mrobe500");
165runone("mrobe100", "mrobe100");
166runone("cowond2", "cowond2");
167fonts("fonts", "x5");
142 168
143fonts("fonts", "iaudiox5");
144 169
diff --git a/tools/release/manuals.pl b/tools/release/manuals.pl
index 7b24ea4880..02783d356b 100755
--- a/tools/release/manuals.pl
+++ b/tools/release/manuals.pl
@@ -1,7 +1,6 @@
1#!/usr/bin/perl 1#!/usr/bin/perl
2 2
3require "../builds.pm"; 3$version="3.4";
4my $version = $publicrelease;
5 4
6my $verbose; 5my $verbose;
7if($ARGV[0] eq "-v") { 6if($ARGV[0] eq "-v") {
@@ -17,7 +16,7 @@ if($ARGV[0]) {
17 16
18# made once for all targets 17# made once for all targets
19sub runone { 18sub runone {
20 my ($dir)=@_; 19 my ($dir, $conf, $nl)=@_;
21 my $a; 20 my $a;
22 21
23 if($doonly && ($doonly ne $dir)) { 22 if($doonly && ($doonly ne $dir)) {
@@ -29,7 +28,7 @@ sub runone {
29 print "Build in buildm-$dir\n" if($verbose); 28 print "Build in buildm-$dir\n" if($verbose);
30 29
31 # build the manual(s) 30 # build the manual(s)
32 $a = buildit($dir); 31 $a = buildit($dir, $conf, $nl);
33 32
34 chdir ".."; 33 chdir "..";
35 34
@@ -54,11 +53,12 @@ sub runone {
54}; 53};
55 54
56sub buildit { 55sub buildit {
57 my ($target)=@_; 56 my ($target, $confnum, $newl)=@_;
58 57
59 `rm -rf * >/dev/null 2>&1`; 58 `rm -rf * >/dev/null 2>&1`;
60 59
61 my $c = "../tools/configure --target=$target --type=m"; 60 my $c = sprintf('printf "%s\n%sm\n" | ../tools/configure',
61 $confnum, $newl?'\n':'');
62 62
63 print "C: $c\n" if($verbose); 63 print "C: $c\n" if($verbose);
64 `$c`; 64 `$c`;
@@ -73,8 +73,27 @@ sub buildit {
73# run make in tools first to make sure they're up-to-date 73# run make in tools first to make sure they're up-to-date
74`(cd tools && make ) >/dev/null 2>&1`; 74`(cd tools && make ) >/dev/null 2>&1`;
75 75
76for my $b (&stablebuilds) { 76runone("player", "player", 1);
77 next if ($builds{$b}{configname} < 3); # no variants 77runone("recorder", "recorder", 1);
78 78runone("fmrecorder", "fmrecorder", 1);
79 runone($b); 79runone("recorderv2", "recorderv2", 1);
80} 80runone("ondiosp", "ondiosp", 1);
81runone("ondiofm", "ondiofm", 1);
82runone("h100", "h100");
83#runone("h120", 9);
84runone("h300", "h300");
85runone("ipodcolor", "ipodcolor");
86runone("ipodnano", "ipodnano");
87runone("ipod4gray", "ipod4g");
88runone("ipodvideo", "ipodvideo", 1);
89runone("ipod3g", "ipod3g");
90runone("ipod1g2g", "ipod1g2g");
91runone("iaudiox5", "x5");
92runone("iaudiom5", "m5");
93runone("ipodmini2g", "ipodmini2g");
94runone("h10", "h10");
95runone("h10_5gb", "h10_5gb");
96runone("gigabeatf", "gigabeatf");
97runone("sansae200", "e200");
98runone("sansac200", "c200");
99runone("mrobe100", "mrobe100");
diff --git a/tools/release/sims.pl b/tools/release/sims.pl
index 79eeb5652a..0481234189 100755
--- a/tools/release/sims.pl
+++ b/tools/release/sims.pl
@@ -4,8 +4,6 @@ use File::Basename;
4use File::Path; 4use File::Path;
5use Cwd; 5use Cwd;
6 6
7require "../builds.pm";
8
9my $verbose, $strip, $update, $doonly, $version; 7my $verbose, $strip, $update, $doonly, $version;
10my @doonly; 8my @doonly;
11 9
@@ -90,7 +88,7 @@ if (!defined($version)) {
90 88
91# made once for all targets 89# made once for all targets
92sub runone { 90sub runone {
93 my ($dir)=@_; 91 my ($dir, $confnum, $extra)=@_;
94 my $a; 92 my $a;
95 93
96 if(@doonly > 0 && !grep(/^$dir$/, @doonly)) { 94 if(@doonly > 0 && !grep(/^$dir$/, @doonly)) {
@@ -102,7 +100,7 @@ sub runone {
102 print "Build in build-$dir\n" if($verbose); 100 print "Build in build-$dir\n" if($verbose);
103 101
104 # build the target 102 # build the target
105 $a = buildit($dir); 103 $a = buildit($dir, $confnum, $extra);
106 104
107 if ($strip) { 105 if ($strip) {
108 print "Stripping binaries\n" if ($verbose); 106 print "Stripping binaries\n" if ($verbose);
@@ -151,11 +149,12 @@ sub runone {
151}; 149};
152 150
153sub buildit { 151sub buildit {
154 my ($target)=@_; 152 my ($target, $confnum, $extra)=@_;
155 153
156 `rm -rf * >/dev/null 2>&1`; 154 `rm -rf * >/dev/null 2>&1`;
157 155
158 my $c = "../tools/configure --type=s --target=$target"; 156 my $c = sprintf('printf "%s\n%ss\n" | ../tools/configure',
157 $confnum, $extra);
159 158
160 print "C: $c\n" if($verbose); 159 print "C: $c\n" if($verbose);
161 `$c`; 160 `$c`;
@@ -167,9 +166,52 @@ sub buildit {
167 `make install 2>/dev/null`; 166 `make install 2>/dev/null`;
168} 167}
169 168
170for my $b (keys %builds) { 169runone("player", "player", '\n');
171 next if ($builds{$b}{status} < 3); # only stable builds 170runone("recorder", "recorder", '\n');
172 next if ($builds{$b}{configname} < 3); # no memsize variants 171#runone("recorder8mb", "recorder", '8\n');
173 172runone("fmrecorder", "fmrecorder", '\n');
174 runone($b); 173#runone("fmrecorder8mb", "fmrecorder", '8\n');
175} 174runone("recorderv2", "recorderv2", '\n');
175runone("ondiosp", "ondiosp", '\n');
176runone("ondiofm", "ondiofm", '\n');
177runone("h100", "h100");
178runone("h120", "h120");
179runone("h300", "h300");
180runone("ipodcolor", "ipodcolor");
181runone("ipodnano", "ipodnano");
182runone("ipod4gray", "ipod4g");
183runone("ipodvideo", "ipodvideo", '32\n');
184#runone("ipodvideo64mb", "ipodvideo", '64\n');
185runone("ipod3g", "ipod3g");
186runone("ipod1g2g", "ipod1g2g");
187runone("iaudiox5", "x5");
188runone("iaudiom5", "m5");
189runone("iaudiom3", "m3");
190runone("ipodmini1g", "ipodmini");
191runone("ipodmini2g", "ipodmini2g");
192runone("h10", "h10");
193runone("h10_5gb", "h10_5gb");
194runone("gigabeatf", "gigabeatf");
195runone("gigabeats", "gigabeats");
196runone("sansae200", "e200");
197runone("sansae200v2", "e200v2");
198runone("sansac200", "c200");
199runone("mrobe500", "mrobe500");
200runone("mrobe100", "mrobe100");
201runone("cowond2", "cowond2");
202runone("clip", "clip");
203runone("zvm30gb", "creativezvm30gb");
204runone("zvm60gb", "creativezvm60gb");
205runone("zenvision", "creativezenvision");
206runone("hdd1630", "hdd1630");
207runone("fuze", "fuze");
208runone("m200v4", "m200v4");
209runone("sa9200", "sa9200");
210runone("sansac200v2", "c200v2");
211runone("yh820", "yh_820");
212runone("yh920", "yh_920");
213runone("yh925", "yh_925");
214runone("ondavx747", "ondavx747");
215runone("ondavx747p", "ondavx747p");
216runone("ondavx777", "ondavx777");
217runone("ifp7xx", "ifp7xx");
diff --git a/tools/release/voices.pl b/tools/release/voices.pl
index d51c3208df..056f6d06a9 100755
--- a/tools/release/voices.pl
+++ b/tools/release/voices.pl
@@ -1,7 +1,6 @@
1#!/usr/bin/perl 1#!/usr/bin/perl
2 2
3require "../builds.pm"; 3$version="3.4";
4my $version = $publicrelease;
5 4
6my $verbose; 5my $verbose;
7if($ARGV[0] eq "-v") { 6if($ARGV[0] eq "-v") {
@@ -17,7 +16,7 @@ if($ARGV[0]) {
17 16
18# made once for all targets 17# made once for all targets
19sub runone { 18sub runone {
20 my ($dir)=@_; 19 my ($dir, $select, $newl)=@_;
21 my $a; 20 my $a;
22 21
23 if($doonly && ($doonly ne $dir)) { 22 if($doonly && ($doonly ne $dir)) {
@@ -29,7 +28,7 @@ sub runone {
29 print "Build in buildv-$dir\n" if($verbose); 28 print "Build in buildv-$dir\n" if($verbose);
30 29
31 # build the manual(s) 30 # build the manual(s)
32 $a = buildit($dir); 31 $a = buildit($dir, $select, $newl);
33 32
34 chdir ".."; 33 chdir "..";
35 34
@@ -51,11 +50,13 @@ sub runone {
51}; 50};
52 51
53sub buildit { 52sub buildit {
54 my ($model)=@_; 53 my ($dir, $select, $newl)=@_;
55 54
56 `rm -rf * >/dev/null 2>&1`; 55 `rm -rf * >/dev/null 2>&1`;
57 56
58 my $c = "../tools/configure --type=av --target=$model --language=0 --tts=f"; 57 # V (voice), F (festival), L (lame), [blank] (English)
58 my $c = sprintf('printf "%s\n%sa\nv\n\n\nf\n\n" | ../tools/configure',
59 $select, $newl?'\n':"");
59 60
60 print "C: $c\n" if($verbose); 61 print "C: $c\n" if($verbose);
61 `$c`; 62 `$c`;
@@ -74,8 +75,31 @@ my $pool="$home/tmp/rockbox-voices-$version/voice-pool";
74`rm -f $pool/*`; 75`rm -f $pool/*`;
75$ENV{'POOL'}="$pool"; 76$ENV{'POOL'}="$pool";
76 77
77for my $b (&stablebuilds) { 78runone("player", "player", 1);
78 next if ($builds{$b}{configname} < 3); # no variants 79runone("recorder", "recorder", 1);
80runone("fmrecorder", "fmrecorder", 1);
81runone("recorderv2", "recorderv2", 1);
82runone("ondiosp", "ondiosp", 1);
83runone("ondiofm", "ondiofm", 1);
84runone("h100", "h100");
85runone("h120", "h120");
86runone("h300", "h300");
87runone("ipodcolor", "ipodcolor");
88runone("ipodnano", "ipodnano");
89runone("ipod4gray", "ipod4g");
90runone("ipodvideo", "ipodvideo", 1);
91runone("ipod3g", "ipod3g");
92runone("ipod1g2g", "ipod1g2g");
93runone("iaudiox5", "x5");
94runone("iaudiom5", "m5");
95runone("iaudiom3", "m3");
96runone("ipodmini2g", "ipodmini2g");
97runone("ipodmini1g", "ipodmini");
98runone("h10", "h10");
99runone("h10_5gb", "h10_5gb");
100runone("gigabeatf", "gigabeatf");
101runone("sansae200", "e200");
102runone("sansac200", "c200");
103runone("mrobe100", "mrobe100");
104#runone("cowond2", "cowond2");
79 105
80 runone($b);
81}