summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-03-04 08:19:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-03-04 08:19:56 +0000
commitdb44b294f49ab5705c5254d7a202d79dd342aa59 (patch)
tree16e4f6dc264daa4ccba10f6a2cd865dc0cce254b
parentf9e18aefacb7b3dcbbdff2ba6f22b16d9ce30404 (diff)
downloadrockbox-db44b294f49ab5705c5254d7a202d79dd342aa59.tar.gz
rockbox-db44b294f49ab5705c5254d7a202d79dd342aa59.zip
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-xtools/buildzip.pl15
1 files changed, 11 insertions, 4 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 9b08b61c2a..e3c013631b 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -58,16 +58,23 @@ sub buildzip {
58 die "can't create .rockbox/viewers.config"; 58 die "can't create .rockbox/viewers.config";
59 mkdir ".rockbox/viewers", 0777; 59 mkdir ".rockbox/viewers", 0777;
60 for (@viewers) { 60 for (@viewers) {
61 if (/,(.+),/) { 61 if (/,(.+).rock,/) {
62 if(-e ".rockbox/rocks/$1") { 62 my $r = "$1.rock";
63 `mv .rockbox/rocks/$1 .rockbox/viewers`; 63 my $o = "$1.ovl";
64 if(-e ".rockbox/rocks/$r") {
65 `mv .rockbox/rocks/$r .rockbox/viewers`;
64 print VIEWERS $_; 66 print VIEWERS $_;
65 } 67 }
66 elsif(-e ".rockbox/viewers/$1") { 68 elsif(-e ".rockbox/viewers/$r") {
67 # in case the same plugin works for multiple extensions, it 69 # in case the same plugin works for multiple extensions, it
68 # was already moved to the viewers dir 70 # was already moved to the viewers dir
69 print VIEWERS $_; 71 print VIEWERS $_;
70 } 72 }
73 if(-e ".rockbox/rocks/$o") {
74 # if there's an "overlay" file for the .rock, move that as
75 # well
76 `mv .rockbox/rocks/$o .rockbox/viewers`;
77 }
71 } 78 }
72 } 79 }
73 close VIEWERS; 80 close VIEWERS;