diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-05-28 22:02:53 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-05-28 22:02:53 +0000 |
| commit | acbbf9361538bb1fc2738a5994359aacdc9d2f43 (patch) | |
| tree | 72494e82a8c4a37661aab09611997998cf9a64f3 /apps/plugins/lua/action_helper.pl | |
| parent | a96f2373db547c4ed482dffe1b4037013a1171ea (diff) | |
| download | rockbox-acbbf9361538bb1fc2738a5994359aacdc9d2f43.zip rockbox-acbbf9361538bb1fc2738a5994359aacdc9d2f43.tar.gz rockbox-acbbf9361538bb1fc2738a5994359aacdc9d2f43.tar.bz2 rockbox-acbbf9361538bb1fc2738a5994359aacdc9d2f43.tar.xz | |
Lua: make sure action.h gets C preprocessed before processing it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21123 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lua/action_helper.pl')
| -rwxr-xr-x | apps/plugins/lua/action_helper.pl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/plugins/lua/action_helper.pl b/apps/plugins/lua/action_helper.pl index b681951..eb66c2b 100755 --- a/apps/plugins/lua/action_helper.pl +++ b/apps/plugins/lua/action_helper.pl @@ -18,13 +18,9 @@ # ############################################################################ -$input = $ARGV[0] . "/../../action.h"; - -open(ACTION, "<$input") or die "Can't open $input!"; - $i = 0; $j = 0; -while(my $line = <ACTION>) +while(my $line = <STDIN>) { chomp($line); if($line =~ /^\s*(ACTION_[^\s]+)(\s*=.*)?,\s*$/) @@ -39,8 +35,6 @@ while(my $line = <ACTION>) } } -close(ACTION); - print "-- Don't change this file!\n"; printf "-- It is automatically generated of action.h %s\n", '$Revision$'; |