diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-05-21 21:58:18 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-05-21 21:58:18 +0000 |
| commit | bcfba0805547f5aa7ea7a48f4740b909a2284193 (patch) | |
| tree | 32fcb88eefa1d0f8795b451dd42d2d5a60e53380 /apps/plugins | |
| parent | a9b2d1b5fa516cc2ea46147fc51589b6e68a2e5d (diff) | |
| download | rockbox-bcfba0805547f5aa7ea7a48f4740b909a2284193.zip rockbox-bcfba0805547f5aa7ea7a48f4740b909a2284193.tar.gz rockbox-bcfba0805547f5aa7ea7a48f4740b909a2284193.tar.bz2 rockbox-bcfba0805547f5aa7ea7a48f4740b909a2284193.tar.xz | |
Lua: add actions.lua to the zip file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21023 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rwxr-xr-x | apps/plugins/lua/action_helper.pl | 4 | ||||
| -rw-r--r-- | apps/plugins/lua/lua.make | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugins/lua/action_helper.pl b/apps/plugins/lua/action_helper.pl index fdf4579..8460b6c 100755 --- a/apps/plugins/lua/action_helper.pl +++ b/apps/plugins/lua/action_helper.pl @@ -18,10 +18,12 @@ # ############################################################################ -$input = "../../action.h"; +$input = $ARGV[0] . "/../../action.h"; open(ACTION, "<$input") or die "Can't open $input!"; +print "-- Don't change this file!\n"; +print "-- It is automatically generated of action.h\n"; print "rb.actions = {\n"; $i = 0; diff --git a/apps/plugins/lua/lua.make b/apps/plugins/lua/lua.make index 6688f2d..4a3690c 100644 --- a/apps/plugins/lua/lua.make +++ b/apps/plugins/lua/lua.make @@ -30,7 +30,10 @@ else ROCKS += $(LUA_BUILDDIR)/lua.rock endif -$(LUA_BUILDDIR)/lua.rock: $(LUA_OBJ) +$(LUA_BUILDDIR)/lua.rock: $(LUA_OBJ) $(LUA_BUILDDIR)/actions.lua + +$(LUA_BUILDDIR)/actions.lua: + $(call PRINTS,GEN $(@F))$(LUA_SRCDIR)/action_helper.pl $(LUA_SRCDIR) > $@ $(LUA_BUILDDIR)/lua.refmap: $(LUA_OBJ) |