summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-03-03 22:09:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-03-03 22:09:41 +0000
commitefae7547f70682c09baddf0c161d2ecd8beac561 (patch)
tree161ad369645a8b6d73fce206276dd9c771814b36
parent32160dc3c37aa470c4ab29dd59f8c5142c51c799 (diff)
downloadrockbox-efae7547f70682c09baddf0c161d2ecd8beac561.tar.gz
rockbox-efae7547f70682c09baddf0c161d2ecd8beac561.zip
Add .ovl files to the zip, and treat them like .rock files.
Support multiple extensions for each .rock file in the generated viewers.config file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6126 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/buildzip.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index b44ed91e8e..b9c9366e6c 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -47,7 +47,7 @@ sub buildzip {
47 mkdir ".rockbox", 0777; 47 mkdir ".rockbox", 0777;
48 mkdir ".rockbox/langs", 0777; 48 mkdir ".rockbox/langs", 0777;
49 mkdir ".rockbox/rocks", 0777; 49 mkdir ".rockbox/rocks", 0777;
50 `find . -name "*.rock" ! -empty | xargs --replace=foo cp foo .rockbox/rocks/`; 50 `find . -name "*.rock" -o -name "*.ovl" ! -empty | xargs --replace=foo cp foo .rockbox/rocks/`;
51 51
52 open VIEWERS, "$ROOT/apps/plugins/viewers.config" or 52 open VIEWERS, "$ROOT/apps/plugins/viewers.config" or
53 die "can't open viewers.config"; 53 die "can't open viewers.config";
@@ -63,6 +63,11 @@ sub buildzip {
63 `mv .rockbox/rocks/$1 .rockbox/viewers`; 63 `mv .rockbox/rocks/$1 .rockbox/viewers`;
64 print VIEWERS $_; 64 print VIEWERS $_;
65 } 65 }
66 elsif(-e ".rockbox/viewers/$1") {
67 # in case the same plugin works for multiple extensions, it
68 # was already moved to the viewers dir
69 print VIEWERS $_;
70 }
66 } 71 }
67 } 72 }
68 close VIEWERS; 73 close VIEWERS;