1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Linus Nielsen Feltzing 2004-07-13 09:45:39 +00:00
parent 3dc50b0d74
commit 8287ce5ba1

View file

@ -26,20 +26,26 @@ sub buildzip {
mkdir ".rockbox/rocks", 0777;
`find . -name "*.rock" ! -empty | xargs --replace=foo cp foo .rockbox/rocks/`;
if($notplayer) {
`cp ../apps/plugins/sokoban.levels .rockbox/`; # sokoban levels
open VIEWERS, "../apps/plugins/viewers.config" or
die "can't open viewers.config";
@viewers = <VIEWERS>;
close VIEWERS;
open VIEWERS, "../apps/plugins/viewers.config" or
die "can't open viewers.config";
@viewers = <VIEWERS>;
close VIEWERS;
`cp ../apps/plugins/viewers.config .rockbox`;
mkdir ".rockbox/viewers";
for (@viewers) {
if (/,(.+),/) {
open VIEWERS, ">.rockbox/viewers.config" or
die "can't create .rockbox/viewers.config";
mkdir ".rockbox/viewers";
for (@viewers) {
if (/,(.+),/) {
if(-e ".rockbox/rocks/$1") {
`mv .rockbox/rocks/$1 .rockbox/viewers`;
print VIEWERS $_;
}
}
}
close VIEWERS;
if($notplayer) {
`cp ../apps/plugins/sokoban.levels .rockbox/`; # sokoban levels
mkdir ".rockbox/fonts", 0777;