summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-07-07 09:02:27 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-07-07 09:02:27 -0400
commitaf1eddb6e933b161938a372b86d1b0065d5b37e8 (patch)
treeeaf9670ba5e710f0f550c2b4edc5fb367254e126
parent7ea7112220a3ae961b01642f4436f5166b024e15 (diff)
downloadrockbox-af1eddb6e9.tar.gz
rockbox-af1eddb6e9.zip
release/voices: Update script to check for global POOL
...If it's already defined, don't override it. And don't wipe its contents! Change-Id: I83ca2ffbd443c1d9766f4a5662a5da5fccbaf3c5
-rwxr-xr-xtools/release/voices.pl13
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/release/voices.pl b/tools/release/voices.pl
index 42bf533118..1b08123673 100755
--- a/tools/release/voices.pl
+++ b/tools/release/voices.pl
@@ -68,12 +68,13 @@ sub buildit {
# run make in tools first to make sure they're up-to-date
`(cd tools && make ) >/dev/null 2>&1`;
-my $home=$ENV{'HOME'};
-
-my $pool="$home/tmp/rockbox-voices-$version/voice-pool";
-`mkdir -p $pool`;
-`rm -f $pool/*`;
-$ENV{'POOL'}="$pool";
+if (!defined($ENV{'POOL'}) {
+ my $home=$ENV{'HOME'};
+ my $pool="$home/tmp/rockbox-voices-$version/voice-pool";
+ `mkdir -p $pool`;
+ $ENV{'POOL'}="$pool";
+}
+# `rm -f $pool/*`;
`mkdir -p $outdir`;