From c3b8fcae33734e170d5d582fe9d061e4bbd5b8e0 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 26 Mar 2025 21:08:56 -0400 Subject: [PATCH] tools: Fixes for release scripts Change-Id: I2d2184baa5267aec64c48eee13580085feb0d4cb --- tools/release/bins.pl | 2 +- tools/release/voices.pl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/release/bins.pl b/tools/release/bins.pl index 2457558242..21fbe65b34 100755 --- a/tools/release/bins.pl +++ b/tools/release/bins.pl @@ -45,7 +45,7 @@ sub runone { } print "remove all contents in build-$dir\n" if($verbose); - system("rm -rf build-$dir"); + system("rm -rf buildb-$dir"); return $a; }; diff --git a/tools/release/voices.pl b/tools/release/voices.pl index 1b08123673..70c6c23696 100755 --- a/tools/release/voices.pl +++ b/tools/release/voices.pl @@ -35,6 +35,8 @@ sub runone { system("mkdir -p output/$target"); system("mkdir -p .rockbox/langs"); system("cp $o .rockbox/langs"); + system("cp $lang.lng.talk .rockbox/langs"); + system("cp InvalidVoice_$lang.talk .rockbox/langs"); system("zip -q -r $newo .rockbox"); system("rm -rf .rockbox"); `chmod a+r $newo`; @@ -68,7 +70,7 @@ sub buildit { # run make in tools first to make sure they're up-to-date `(cd tools && make ) >/dev/null 2>&1`; -if (!defined($ENV{'POOL'}) { +if (!defined($ENV{'POOL'})) { my $home=$ENV{'HOME'}; my $pool="$home/tmp/rockbox-voices-$version/voice-pool"; `mkdir -p $pool`; @@ -82,8 +84,6 @@ for my $b (&usablebuilds) { next if ($builds{$b}{voice}); # no variants for my $v (&allvoices) { - my %voice = $voices{$v}; - # print " runone $b $v ($voices{$v}->{lang} via $voices{$v}->{defengine})\n"; runone($b, $v, $voices{$v}->{lang}, $voices{$v}->{defengine}, "-1", $voices{$v}->{engines}->{$voices{$v}->{defengine}});