diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-06-18 22:08:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-06-18 22:08:12 +0000 |
commit | 3270795b48d95ac46ba655248a8acc85dee453d7 (patch) | |
tree | 5940f7aa9852174ed667b7b6d7284e77431b68ec /tools | |
parent | 4070f035cfbe24ff53686415c76a1217032d0cb4 (diff) | |
download | rockbox-3270795b48d95ac46ba655248a8acc85dee453d7.tar.gz rockbox-3270795b48d95ac46ba655248a8acc85dee453d7.zip |
1) use buildv- as prefix for the dirs this creates while building so that it
won't conflict if running in parallel with the other builds scripts
2) mkdir the pool directory as well, to prevent me from doing this same mistake
every single release where I discover that the voice builds take ages until
I remember to create the pool!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21337 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/release/voices.pl | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/tools/release/voices.pl b/tools/release/voices.pl index a05f706111..f23c96cb69 100755 --- a/tools/release/voices.pl +++ b/tools/release/voices.pl | |||
@@ -23,16 +23,16 @@ sub runone { | |||
23 | return; | 23 | return; |
24 | } | 24 | } |
25 | 25 | ||
26 | mkdir "build-$dir"; | 26 | mkdir "buildv-$dir"; |
27 | chdir "build-$dir"; | 27 | chdir "buildv-$dir"; |
28 | print "Build in build-$dir\n" if($verbose); | 28 | print "Build in buildv-$dir\n" if($verbose); |
29 | 29 | ||
30 | # build the manual(s) | 30 | # build the manual(s) |
31 | $a = buildit($dir, $select, $newl); | 31 | $a = buildit($dir, $select, $newl); |
32 | 32 | ||
33 | chdir ".."; | 33 | chdir ".."; |
34 | 34 | ||
35 | my $o="build-$dir/english.voice"; | 35 | my $o="buildv-$dir/english.voice"; |
36 | if (-f $o) { | 36 | if (-f $o) { |
37 | my $newo="output/$dir-$version-english.zip"; | 37 | my $newo="output/$dir-$version-english.zip"; |
38 | system("cp $o output/$dir-$version-english.voice"); | 38 | system("cp $o output/$dir-$version-english.voice"); |
@@ -43,8 +43,8 @@ sub runone { | |||
43 | print "moved $o to $newo\n" if($verbose); | 43 | print "moved $o to $newo\n" if($verbose); |
44 | } | 44 | } |
45 | 45 | ||
46 | print "remove all contents in build-$dir\n" if($verbose); | 46 | print "remove all contents in buildv-$dir\n" if($verbose); |
47 | system("rm -rf build-$dir"); | 47 | system("rm -rf buildv-$dir"); |
48 | 48 | ||
49 | return $a; | 49 | return $a; |
50 | }; | 50 | }; |
@@ -68,8 +68,12 @@ sub buildit { | |||
68 | # run make in tools first to make sure they're up-to-date | 68 | # run make in tools first to make sure they're up-to-date |
69 | `(cd tools && make ) >/dev/null 2>&1`; | 69 | `(cd tools && make ) >/dev/null 2>&1`; |
70 | 70 | ||
71 | `rm -f /home/dast/tmp/rockbox-voices-$version/voice-pool/*`; | 71 | my $home=$ENV{'HOME'}; |
72 | $ENV{'POOL'}="/home/dast/tmp/rockbox-voices-$version/voice-pool"; | 72 | |
73 | my $pool="$home/tmp/rockbox-voices-$version/voice-pool"; | ||
74 | `mkdir -p $pool`; | ||
75 | `rm -f $pool/*`; | ||
76 | $ENV{'POOL'}="$pool"; | ||
73 | 77 | ||
74 | runone("player", "player", 1); | 78 | runone("player", "player", 1); |
75 | runone("recorder", "recorder", 1); | 79 | runone("recorder", "recorder", 1); |