diff options
author | William Wilgus <me.theuser@yahoo.com> | 2019-07-26 01:30:00 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2019-07-29 02:51:29 -0500 |
commit | 90118f14cf078358f9ebdee110450b976c9a9e11 (patch) | |
tree | 1cbde562e0c83719db2e16f23fc33cef690fd2c3 /tools | |
parent | 60c5a29408f7ca05a88ce1a98a4858293925169f (diff) | |
download | rockbox-90118f14cf078358f9ebdee110450b976c9a9e11.tar.gz rockbox-90118f14cf078358f9ebdee110450b976c9a9e11.tar.bz2 rockbox-90118f14cf078358f9ebdee110450b976c9a9e11.zip |
lua add demo scripts, atexit handler, gui_scrollbar_draw
Change-Id: Ie8794e8a487f73952dae43e036787b6972fdbbee
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/buildzip.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 1fd242e12c..6a67f7b51b 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -173,6 +173,16 @@ sub make_install { } glob_install("$src/rocks/viewers/lua/*", "$libdir/rocks/viewers/lua"); + #lua example scripts + if(-e "$ROOT/apps/plugins/lua_scripts") { + unless (glob_mkdir("$libdir/rocks/demos/lua_scripts")) { + return 0; + } + glob_install("$ROOT/apps/plugins/lua_scripts/*.lua", "$libdir/rocks/demos/lua_scripts"); + #glob_mkdir("$temp_dir/rocks/demos/lua_scripts"); + #glob_copy("$ROOT/apps/plugins/lua_scripts/*.lua", "$temp_dir/rocks/demos/lua_scripts/"); + } + # all the rest directories foreach my $t (@userstuff) { unless (glob_mkdir("$userdir/$t")) { @@ -433,6 +443,12 @@ sub buildzip { find(find_copyfile(qr/\.(rock|ovl|lua)/, abs_path("$temp_dir/rocks/")), 'apps/plugins'); + #lua example scripts + if(-e "$ROOT/apps/plugins/lua_scripts") { + glob_mkdir("$temp_dir/rocks/demos/lua_scripts"); + glob_copy("$ROOT/apps/plugins/lua_scripts/*.lua", "$temp_dir/rocks/demos/lua_scripts/"); + } + # exclude entries for the image file types not supported by the imageviewer for the target. my $viewers = "$ROOT/apps/plugins/viewers.config"; my $c="cat $viewers | gcc $cppdef -I. -I$firmdir/export -E -P -include config.h -"; |