diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-03-04 08:19:56 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-03-04 08:19:56 +0000 |
| commit | db44b294f49ab5705c5254d7a202d79dd342aa59 (patch) | |
| tree | 16e4f6dc264daa4ccba10f6a2cd865dc0cce254b | |
| parent | f9e18aefacb7b3dcbbdff2ba6f22b16d9ce30404 (diff) | |
| download | rockbox-db44b294f49ab5705c5254d7a202d79dd342aa59.zip rockbox-db44b294f49ab5705c5254d7a202d79dd342aa59.tar.gz rockbox-db44b294f49ab5705c5254d7a202d79dd342aa59.tar.bz2 rockbox-db44b294f49ab5705c5254d7a202d79dd342aa59.tar.xz | |
support .ovl files to "accompany" .rock files when they are viewers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6128 a1c6a512-1295-4272-9138-f99709370657
| -rwxr-xr-x | tools/buildzip.pl | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 9b08b61..e3c0136 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -58,16 +58,23 @@ sub buildzip { die "can't create .rockbox/viewers.config"; mkdir ".rockbox/viewers", 0777; for (@viewers) { - if (/,(.+),/) { - if(-e ".rockbox/rocks/$1") { - `mv .rockbox/rocks/$1 .rockbox/viewers`; + if (/,(.+).rock,/) { + my $r = "$1.rock"; + my $o = "$1.ovl"; + if(-e ".rockbox/rocks/$r") { + `mv .rockbox/rocks/$r .rockbox/viewers`; print VIEWERS $_; } - elsif(-e ".rockbox/viewers/$1") { + elsif(-e ".rockbox/viewers/$r") { # in case the same plugin works for multiple extensions, it # was already moved to the viewers dir print VIEWERS $_; } + if(-e ".rockbox/rocks/$o") { + # if there's an "overlay" file for the .rock, move that as + # well + `mv .rockbox/rocks/$o .rockbox/viewers`; + } } } close VIEWERS; |