diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-08-11 20:48:34 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-08-11 20:48:34 +0000 |
| commit | a52018c3a56f6ba369ee8eb2b7a65c3ac754d8ef (patch) | |
| tree | 9b6e39d930584e0a292587d7c3a35b72fe3908a1 | |
| parent | 436901a86b8698b8d48a7f2ed87a9afbf7057a47 (diff) | |
| download | rockbox-a52018c3a56f6ba369ee8eb2b7a65c3ac754d8ef.zip rockbox-a52018c3a56f6ba369ee8eb2b7a65c3ac754d8ef.tar.gz rockbox-a52018c3a56f6ba369ee8eb2b7a65c3ac754d8ef.tar.bz2 rockbox-a52018c3a56f6ba369ee8eb2b7a65c3ac754d8ef.tar.xz | |
prevent an empty "codecs" directory for models without software codecs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7307 a1c6a512-1295-4272-9138-f99709370657
| -rwxr-xr-x | tools/buildzip.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 392a0d0..935de6b 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -57,6 +57,14 @@ sub buildzip { my $c = 'find apps -name "*.codec" ! -empty -exec cp {} .rockbox/codecs/ \;'; print `$c`; + + my @call = `find .rockbox/codecs`; + if(!$call[0]) { + # no codec was copied, remove directory again + unlink(".rockbox/codecs"); + } + + $c= 'find apps "(" -name "*.rock" -o -name "*.ovl" ")" ! -empty -exec cp {} .rockbox/rocks/ \;'; print `$c`; |