From 1dff29a9d6780c2fd10ac1ad32929cb6808c0936 Mon Sep 17 00:00:00 2001 From: Stéphane Doyon Date: Tue, 27 Nov 2007 13:47:52 +0000 Subject: Accept FS#8236: make voice should overwrite existing .voice files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15835 a1c6a512-1295-4272-9138-f99709370657 --- tools/voice.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/voice.pl b/tools/voice.pl index 415c2bbc38..0d5a3d2d64 100755 --- a/tools/voice.pl +++ b/tools/voice.pl @@ -398,10 +398,7 @@ sub createvoice { our $verbose; my ($language, $target_id) = @_; my $outfile = ""; - my $i = 0; - do { - $outfile = sprintf("%s%s.voice", $language, ($i++ == 0 ? '' : '-'.$i)); - } while (-f $outfile); + $outfile = sprintf("%s.voice", $language); printf("Saving voice file to %s\n", $outfile) if $verbose; my $cmd = "voicefont 'voicefontids' $target_id ./ $outfile"; print("> $cmd\n") if $verbose; -- cgit