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
This commit is contained in:
parent
32160dc3c3
commit
efae7547f7
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue