summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-06-18 22:08:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-06-18 22:08:12 +0000
commit3270795b48d95ac46ba655248a8acc85dee453d7 (patch)
tree5940f7aa9852174ed667b7b6d7284e77431b68ec /tools
parent4070f035cfbe24ff53686415c76a1217032d0cb4 (diff)
downloadrockbox-3270795b48d95ac46ba655248a8acc85dee453d7.tar.gz
rockbox-3270795b48d95ac46ba655248a8acc85dee453d7.tar.bz2
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-xtools/release/voices.pl20
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 {
return;
}
- mkdir "build-$dir";
- chdir "build-$dir";
- print "Build in build-$dir\n" if($verbose);
+ mkdir "buildv-$dir";
+ chdir "buildv-$dir";
+ print "Build in buildv-$dir\n" if($verbose);
# build the manual(s)
$a = buildit($dir, $select, $newl);
chdir "..";
- my $o="build-$dir/english.voice";
+ my $o="buildv-$dir/english.voice";
if (-f $o) {
my $newo="output/$dir-$version-english.zip";
system("cp $o output/$dir-$version-english.voice");
@@ -43,8 +43,8 @@ sub runone {
print "moved $o to $newo\n" if($verbose);
}
- print "remove all contents in build-$dir\n" if($verbose);
- system("rm -rf build-$dir");
+ print "remove all contents in buildv-$dir\n" if($verbose);
+ system("rm -rf buildv-$dir");
return $a;
};
@@ -68,8 +68,12 @@ sub buildit {
# run make in tools first to make sure they're up-to-date
`(cd tools && make ) >/dev/null 2>&1`;
-`rm -f /home/dast/tmp/rockbox-voices-$version/voice-pool/*`;
-$ENV{'POOL'}="/home/dast/tmp/rockbox-voices-$version/voice-pool";
+my $home=$ENV{'HOME'};
+
+my $pool="$home/tmp/rockbox-voices-$version/voice-pool";
+`mkdir -p $pool`;
+`rm -f $pool/*`;
+$ENV{'POOL'}="$pool";
runone("player", "player", 1);
runone("recorder", "recorder", 1);