summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/action_helper.pl
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/action_helper.pl')
-rwxr-xr-xapps/plugins/lua/action_helper.pl8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/plugins/lua/action_helper.pl b/apps/plugins/lua/action_helper.pl
index b681951588..eb66c2b01e 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$';