14 print "only build $doonly\n" if($verbose);
17 # made once for all targets
19 my ($dir, $select, $newl)=@_;
22 if($doonly && ($doonly ne $dir)) {
28 print "Build in buildv-$dir\n" if($verbose);
31 $a = buildit
($dir, $select, $newl);
35 my $o="buildv-$dir/english.voice";
37 my $newo="output/$dir-$version-english.zip";
38 system("cp $o output/$dir-$version-english.voice");
39 system("mkdir -p .rockbox/langs");
40 system("cp $o .rockbox/langs");
41 system("zip -r $newo .rockbox");
42 system("rm -rf .rockbox");
43 print "moved $o to $newo\n" if($verbose);
46 print "remove all contents in buildv-$dir\n" if($verbose);
47 system("rm -rf buildv-$dir");
53 my ($dir, $select, $newl)=@_;
55 `rm -rf * >/dev/null 2>&1`;
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':"");
61 print "C: $c\n" if($verbose);
64 print "Run 'make voice'\n" if($verbose);
65 print `make voice 2>/dev/null`;
68 # run make in tools first to make sure they're up-to-date
69 `(cd tools && make ) >/dev/null 2>&1`;
71 my $home=$ENV{'HOME'};
73 my $pool="$home/tmp/rockbox-voices-$version/voice-pool";
78 runone
("player", "player", 1);
79 runone
("recorder", "recorder", 1);
80 runone
("fmrecorder", "fmrecorder", 1);
81 runone
("recorderv2", "recorderv2", 1);
82 runone
("ondiosp", "ondiosp", 1);
83 runone
("ondiofm", "ondiofm", 1);
84 runone
("h100", "h100");
85 runone
("h120", "h120");
86 runone
("h300", "h300");
87 runone
("ipodcolor", "ipodcolor");
88 runone
("ipodnano", "ipodnano");
89 runone
("ipod4gray", "ipod4g");
90 runone
("ipodvideo", "ipodvideo", 1);
91 runone
("ipod3g", "ipod3g");
92 runone
("ipod1g2g", "ipod1g2g");
93 runone
("iaudiox5", "x5");
94 runone
("iaudiom5", "m5");
95 runone
("iaudiom3", "m3");
96 runone
("ipodmini2g", "ipodmini2g");
97 runone
("ipodmini1g", "ipodmini");
99 runone
("h10_5gb", "h10_5gb");
100 runone
("gigabeatf", "gigabeatf");
101 runone
("sansae200", "e200");
102 runone
("sansac200", "c200");
103 runone
("mrobe100", "mrobe100");
104 #runone("cowond2", "cowond2");