summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2008-07-20 22:47:49 +0000
committerJonas Häggqvist <rasher@rasher.dk>2008-07-20 22:47:49 +0000
commit6539b434aa66b9b98568fa7bf466408eb770b209 (patch)
tree144d7ab80b2994d5fb529b7c8385cd974fca3f05
parent4077f236cedbcc24fac40874b68617a8a573b9d3 (diff)
downloadrockbox-6539b434aa66b9b98568fa7bf466408eb770b209.tar.gz
rockbox-6539b434aa66b9b98568fa7bf466408eb770b209.zip
Skip an unneeded check. Simply call rmdir, and if it's empty it goes - if not, it stays.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18109 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/buildzip.pl8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 9bd896be3f..973163de08 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -284,12 +284,8 @@ STOP
284 284
285 find(find_copyfile(qr/.*\.codec/, abs_path('.rockbox/codecs/')), 'apps/codecs'); 285 find(find_copyfile(qr/.*\.codec/, abs_path('.rockbox/codecs/')), 'apps/codecs');
286 286
287 my @call = `find .rockbox/codecs -type f 2>/dev/null`; 287 # remove directory again if no codec was copied
288 if(!$call[0]) { 288 rmdir(".rockbox/codecs");
289 # no codec was copied, remove directory again
290 rmdir(".rockbox/codecs");
291
292 }
293 } 289 }
294 290
295 find(find_copyfile(qr/\.(rock|ovl)/, abs_path('.rockbox/rocks/')), 'apps/plugins'); 291 find(find_copyfile(qr/\.(rock|ovl)/, abs_path('.rockbox/rocks/')), 'apps/plugins');