summaryrefslogtreecommitdiff
path: root/tools/release/voices.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/release/voices.pl')
-rwxr-xr-xtools/release/voices.pl44
1 files changed, 10 insertions, 34 deletions
diff --git a/tools/release/voices.pl b/tools/release/voices.pl
index 056f6d06a9..d51c3208df 100755
--- a/tools/release/voices.pl
+++ b/tools/release/voices.pl
@@ -1,6 +1,7 @@
1#!/usr/bin/perl 1#!/usr/bin/perl
2 2
3$version="3.4"; 3require "../builds.pm";
4my $version = $publicrelease;
4 5
5my $verbose; 6my $verbose;
6if($ARGV[0] eq "-v") { 7if($ARGV[0] eq "-v") {
@@ -16,7 +17,7 @@ if($ARGV[0]) {
16 17
17# made once for all targets 18# made once for all targets
18sub runone { 19sub runone {
19 my ($dir, $select, $newl)=@_; 20 my ($dir)=@_;
20 my $a; 21 my $a;
21 22
22 if($doonly && ($doonly ne $dir)) { 23 if($doonly && ($doonly ne $dir)) {
@@ -28,7 +29,7 @@ sub runone {
28 print "Build in buildv-$dir\n" if($verbose); 29 print "Build in buildv-$dir\n" if($verbose);
29 30
30 # build the manual(s) 31 # build the manual(s)
31 $a = buildit($dir, $select, $newl); 32 $a = buildit($dir);
32 33
33 chdir ".."; 34 chdir "..";
34 35
@@ -50,13 +51,11 @@ sub runone {
50}; 51};
51 52
52sub buildit { 53sub buildit {
53 my ($dir, $select, $newl)=@_; 54 my ($model)=@_;
54 55
55 `rm -rf * >/dev/null 2>&1`; 56 `rm -rf * >/dev/null 2>&1`;
56 57
57 # V (voice), F (festival), L (lame), [blank] (English) 58 my $c = "../tools/configure --type=av --target=$model --language=0 --tts=f";
58 my $c = sprintf('printf "%s\n%sa\nv\n\n\nf\n\n" | ../tools/configure',
59 $select, $newl?'\n':"");
60 59
61 print "C: $c\n" if($verbose); 60 print "C: $c\n" if($verbose);
62 `$c`; 61 `$c`;
@@ -75,31 +74,8 @@ my $pool="$home/tmp/rockbox-voices-$version/voice-pool";
75`rm -f $pool/*`; 74`rm -f $pool/*`;
76$ENV{'POOL'}="$pool"; 75$ENV{'POOL'}="$pool";
77 76
78runone("player", "player", 1); 77for my $b (&stablebuilds) {
79runone("recorder", "recorder", 1); 78 next if ($builds{$b}{configname} < 3); # no variants
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");
105 79
80 runone($b);
81}