5 require "tools/builds.pm";
16 print "only build $doonly\n" if($verbose);
19 # made once for all targets
24 if($doonly && ($doonly ne $dir)) {
30 print "Build in buildv-$dir\n" if($verbose);
37 my $o="buildv-$dir/english.voice";
39 my $newo="output/$dir-$version-english.zip";
40 system("cp $o output/$dir-$version-english.voice");
41 system("mkdir -p .rockbox/langs");
42 system("cp $o .rockbox/langs");
43 system("zip -r $newo .rockbox");
44 system("rm -rf .rockbox");
45 print "moved $o to $newo\n" if($verbose);
48 print "remove all contents in buildv-$dir\n" if($verbose);
49 system("rm -rf buildv-$dir");
57 `rm -rf * >/dev/null 2>&1`;
59 my $c = "../tools/configure --type=av --target=$model --language=0 --tts=f --ram=0 --voice=0";
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 for my $b (&stablebuilds
) {
79 next if (length($builds{$b}{configname
}) > 0); # no variants