summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-10-28 23:05:02 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-10-28 23:05:02 +0000
commit78e98fdeeffeb8673a537a12898c57523a386675 (patch)
tree951c3163bd078f9c05004e04cae969ded27e6f3f /tools
parent4d668c7ae116935056a85ed31bff121d93db9319 (diff)
downloadrockbox-78e98fdeeffeb8673a537a12898c57523a386675.tar.gz
rockbox-78e98fdeeffeb8673a537a12898c57523a386675.tar.bz2
rockbox-78e98fdeeffeb8673a537a12898c57523a386675.zip
Add support to buildzip.pl for Lua scripts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23388 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildzip.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl
index 09d6d87290..f04d0ff775 100755
--- a/tools/buildzip.pl
+++ b/tools/buildzip.pl
@@ -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");