forked from len0rd/rockbox
[BugFix] lua include scripts may fail to copy
lua has some include scripts for interfacing with rockbox locally these appear to be generated properly by the lua make file However the buildserver appears to not copy them over add a copy loop for lua_include in then buildzip script to ensure they get copied Change-Id: I8d2a4447a1496a53a16cec6e51d453cb60c2d6e5
This commit is contained in:
parent
5829701fba
commit
154a20c2eb
1 changed files with 16 additions and 0 deletions
|
@ -180,6 +180,16 @@ sub make_install {
|
|||
}
|
||||
glob_install("$src/rocks/viewers/lua/*", "$libdir/rocks/viewers/lua");
|
||||
|
||||
#lua include scripts
|
||||
if(-e "$ROOT/apps/plugins/lua/include_lua") {
|
||||
unless (glob_mkdir("$libdir/rocks/viewers/lua")) {
|
||||
return 0;
|
||||
}
|
||||
glob_install("$ROOT/apps/plugins/lua/include_lua/*.lua", "$libdir/rocks/viewers/lua");
|
||||
#glob_mkdir("$temp_dir/rocks/viewers/lua");
|
||||
#glob_copy("$ROOT/apps/plugins/lua/include_lua/*.lua", "$temp_dir/rocks/viewers/lua/");
|
||||
}
|
||||
|
||||
#lua example scripts
|
||||
if(-e "$ROOT/apps/plugins/lua_scripts") {
|
||||
unless (glob_mkdir("$libdir/rocks/demos/lua_scripts")) {
|
||||
|
@ -460,6 +470,12 @@ sub buildzip {
|
|||
|
||||
find(find_copyfile(qr/\.(rock|ovl|lua)/, abs_path("$temp_dir/rocks/")), 'apps/plugins');
|
||||
|
||||
#lua include scripts
|
||||
if(-e "$ROOT/apps/plugins/lua/include_lua") {
|
||||
glob_mkdir("$temp_dir/rocks/viewers/lua");
|
||||
glob_copy("$ROOT/apps/plugins/lua/include_lua/*.lua", "$temp_dir/rocks/viewers/lua/");
|
||||
}
|
||||
|
||||
#lua example scripts
|
||||
if(-e "$ROOT/apps/plugins/lua_scripts") {
|
||||
glob_mkdir("$temp_dir/rocks/demos/lua_scripts");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue