diff options
Diffstat (limited to 'tools/buildzip.pl')
-rwxr-xr-x | tools/buildzip.pl | 7 |
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; |