summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-08-11 20:48:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-08-11 20:48:34 +0000
commita52018c3a56f6ba369ee8eb2b7a65c3ac754d8ef (patch)
tree9b6e39d930584e0a292587d7c3a35b72fe3908a1 /tools
parent436901a86b8698b8d48a7f2ed87a9afbf7057a47 (diff)
downloadrockbox-a52018c3a56f6ba369ee8eb2b7a65c3ac754d8ef.tar.gz
rockbox-a52018c3a56f6ba369ee8eb2b7a65c3ac754d8ef.tar.bz2
rockbox-a52018c3a56f6ba369ee8eb2b7a65c3ac754d8ef.zip
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 392a0d0211..935de6b208 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`;