diff options
author | Stéphane Doyon <s.doyon@videotron.ca> | 2007-11-27 13:47:52 +0000 |
---|---|---|
committer | Stéphane Doyon <s.doyon@videotron.ca> | 2007-11-27 13:47:52 +0000 |
commit | 1dff29a9d6780c2fd10ac1ad32929cb6808c0936 (patch) | |
tree | 4c685ab612c811791687045c79000d2c4c72bf71 /tools | |
parent | a0224590d45a0249160bb2ebd167ed3a1cac0176 (diff) | |
download | rockbox-1dff29a9d6780c2fd10ac1ad32929cb6808c0936.tar.gz rockbox-1dff29a9d6780c2fd10ac1ad32929cb6808c0936.zip |
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
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/voice.pl | 5 |
1 files changed, 1 insertions, 4 deletions
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 { | |||
398 | our $verbose; | 398 | our $verbose; |
399 | my ($language, $target_id) = @_; | 399 | my ($language, $target_id) = @_; |
400 | my $outfile = ""; | 400 | my $outfile = ""; |
401 | my $i = 0; | 401 | $outfile = sprintf("%s.voice", $language); |
402 | do { | ||
403 | $outfile = sprintf("%s%s.voice", $language, ($i++ == 0 ? '' : '-'.$i)); | ||
404 | } while (-f $outfile); | ||
405 | printf("Saving voice file to %s\n", $outfile) if $verbose; | 402 | printf("Saving voice file to %s\n", $outfile) if $verbose; |
406 | my $cmd = "voicefont 'voicefontids' $target_id ./ $outfile"; | 403 | my $cmd = "voicefont 'voicefontids' $target_id ./ $outfile"; |
407 | print("> $cmd\n") if $verbose; | 404 | print("> $cmd\n") if $verbose; |