summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-03-18 21:17:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-03-18 21:17:35 +0000
commit22bf64a999671ad22307cb8178c433ed0f7fbcea (patch)
treeccfbfd5fcd1a62a1c4bae12296af52803bdd7160 /tools
parent2624b558cefe8f677949573c6bfb93ae11783c79 (diff)
downloadrockbox-22bf64a999671ad22307cb8178c433ed0f7fbcea.tar.gz
rockbox-22bf64a999671ad22307cb8178c433ed0f7fbcea.tar.bz2
rockbox-22bf64a999671ad22307cb8178c433ed0f7fbcea.zip
exclude more bitmap and swcodec things from the player zips
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9103 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl35
1 files changed, 18 insertions, 17 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index fad73624ed..0615666617 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -86,27 +86,28 @@ sub buildzip {
mkdir ".rockbox", 0777;
mkdir ".rockbox/langs", 0777;
mkdir ".rockbox/rocks", 0777;
- mkdir ".rockbox/codecs", 0777;
- mkdir ".rockbox/codepages", 0777;
- mkdir ".rockbox/wps", 0777;
- mkdir ".rockbox/themes", 0777;
- mkdir ".rockbox/backdrops", 0777;
- mkdir ".rockbox/eqs", 0777;
-
- my $c = 'find apps -name "*.codec" ! -empty -exec cp {} .rockbox/codecs/ \;';
- print `$c`;
+ if($notplayer) {
+ mkdir ".rockbox/codepages", 0777;
+ mkdir ".rockbox/codecs", 0777;
+ mkdir ".rockbox/wps", 0777;
+ mkdir ".rockbox/themes", 0777;
+ mkdir ".rockbox/backdrops", 0777;
+ mkdir ".rockbox/eqs", 0777;
- system("$ROOT/tools/codepages");
- my $c = 'find . -name "*.cp" ! -empty -exec mv {} .rockbox/codepages/ \; >/dev/null 2>&1';
- print `$c`;
+ my $c = 'find apps -name "*.codec" ! -empty -exec cp {} .rockbox/codecs/ \; 2>/dev/null';
+ `$c`;
- my @call = `find .rockbox/codecs -type f`;
- if(!$call[0]) {
- # no codec was copied, remove directory again
- rmdir(".rockbox/codecs");
+ system("$ROOT/tools/codepages");
+ my $c = 'find . -name "*.cp" ! -empty -exec mv {} .rockbox/codepages/ \; >/dev/null 2>&1';
+ `$c`;
- }
+ my @call = `find .rockbox/codecs -type f 2>/dev/null`;
+ if(!$call[0]) {
+ # no codec was copied, remove directory again
+ rmdir(".rockbox/codecs");
+ }
+ }
$c= 'find apps "(" -name "*.rock" -o -name "*.ovl" ")" ! -empty -exec cp {} .rockbox/rocks/ \;';
print `$c`;