forked from len0rd/rockbox
Add support to buildzip.pl for Lua scripts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23388 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4d668c7ae1
commit
78e98fdeef
1 changed files with 7 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ STOP
|
|||
rmdir("$rbdir/codecs");
|
||||
}
|
||||
|
||||
find(find_copyfile(qr/\.(rock|ovl)/, abs_path("$rbdir/rocks/")), 'apps/plugins');
|
||||
find(find_copyfile(qr/\.(rock|ovl|lua)/, abs_path("$rbdir/rocks/")), 'apps/plugins');
|
||||
|
||||
open VIEWERS, "$ROOT/apps/plugins/viewers.config" or
|
||||
die "can't open viewers.config";
|
||||
|
|
@ -340,9 +340,15 @@ STOP
|
|||
# well
|
||||
move("$rbdir/rocks/${plugin}.ovl", "$rbdir/rocks/$dir");
|
||||
}
|
||||
if(-e "$rbdir/rocks/${plugin}.lua") {
|
||||
# if this is a lua script, move it to the appropriate dir
|
||||
move("$rbdir/rocks/${plugin}.lua", "$rbdir/rocks/$dir/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
glob_unlink("$rbdir/rocks/*.lua"); # Clean up unwanted *.lua files (e.g. actions.lua, buttons.lua)
|
||||
|
||||
if ($bitmap) {
|
||||
mkdir "$rbdir/icons", 0777;
|
||||
copy("$viewer_bmpdir/viewers.${icon_w}x${icon_h}x$depth.bmp", "$rbdir/icons/viewers.bmp");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue