diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-03-03 22:09:41 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-03-03 22:09:41 +0000 |
commit | efae7547f70682c09baddf0c161d2ecd8beac561 (patch) | |
tree | 161ad369645a8b6d73fce206276dd9c771814b36 /tools | |
parent | 32160dc3c37aa470c4ab29dd59f8c5142c51c799 (diff) |
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
Diffstat (limited to 'tools')
-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 { mkdir ".rockbox", 0777; mkdir ".rockbox/langs", 0777; mkdir ".rockbox/rocks", 0777; - `find . -name "*.rock" ! -empty | xargs --replace=foo cp foo .rockbox/rocks/`; + `find . -name "*.rock" -o -name "*.ovl" ! -empty | xargs --replace=foo cp foo .rockbox/rocks/`; open VIEWERS, "$ROOT/apps/plugins/viewers.config" or die "can't open viewers.config"; @@ -63,6 +63,11 @@ sub buildzip { `mv .rockbox/rocks/$1 .rockbox/viewers`; print VIEWERS $_; } + elsif(-e ".rockbox/viewers/$1") { + # in case the same plugin works for multiple extensions, it + # was already moved to the viewers dir + print VIEWERS $_; + } } } close VIEWERS; |