diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-13 09:45:39 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-13 09:45:39 +0000 |
commit | 8287ce5ba1683965d9e5eabaae687d1504d60e6a (patch) | |
tree | c1bf562a6bf9c0b05badf722e11e9edc459919bf | |
parent | 3dc50b0d74ff0eb1ef92d41ffc21a1f948c50051 (diff) | |
download | rockbox-8287ce5ba1683965d9e5eabaae687d1504d60e6a.tar.gz rockbox-8287ce5ba1683965d9e5eabaae687d1504d60e6a.zip |
Now the viewers.config concept works for players as well
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4869 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | tools/buildzip.pl | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index fa967b1b28..199034f1a2 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl | |||
@@ -26,20 +26,26 @@ sub buildzip { | |||
26 | mkdir ".rockbox/rocks", 0777; | 26 | mkdir ".rockbox/rocks", 0777; |
27 | `find . -name "*.rock" ! -empty | xargs --replace=foo cp foo .rockbox/rocks/`; | 27 | `find . -name "*.rock" ! -empty | xargs --replace=foo cp foo .rockbox/rocks/`; |
28 | 28 | ||
29 | if($notplayer) { | 29 | open VIEWERS, "../apps/plugins/viewers.config" or |
30 | `cp ../apps/plugins/sokoban.levels .rockbox/`; # sokoban levels | 30 | die "can't open viewers.config"; |
31 | 31 | @viewers = <VIEWERS>; | |
32 | open VIEWERS, "../apps/plugins/viewers.config" or | 32 | close VIEWERS; |
33 | die "can't open viewers.config"; | 33 | |
34 | @viewers = <VIEWERS>; | 34 | open VIEWERS, ">.rockbox/viewers.config" or |
35 | close VIEWERS; | 35 | die "can't create .rockbox/viewers.config"; |
36 | `cp ../apps/plugins/viewers.config .rockbox`; | 36 | mkdir ".rockbox/viewers"; |
37 | mkdir ".rockbox/viewers"; | 37 | for (@viewers) { |
38 | for (@viewers) { | 38 | if (/,(.+),/) { |
39 | if (/,(.+),/) { | 39 | if(-e ".rockbox/rocks/$1") { |
40 | `mv .rockbox/rocks/$1 .rockbox/viewers`; | 40 | `mv .rockbox/rocks/$1 .rockbox/viewers`; |
41 | print VIEWERS $_; | ||
41 | } | 42 | } |
42 | } | 43 | } |
44 | } | ||
45 | close VIEWERS; | ||
46 | |||
47 | if($notplayer) { | ||
48 | `cp ../apps/plugins/sokoban.levels .rockbox/`; # sokoban levels | ||
43 | 49 | ||
44 | mkdir ".rockbox/fonts", 0777; | 50 | mkdir ".rockbox/fonts", 0777; |
45 | 51 | ||