eval 'exec perl $0'
        if $running_under_some_shell;

$count = 0;
@defs = ();

print "/* Automatically generated by gen_ops.  DO NOT EDIT! */

#ifdef HELP_C
const char *HelpStrings[] = {
";

while (<>)
{
	chop;
	m/([^ ]*) *(.*)/;
	push (@defs, "\t$1,\n");
	print "	$2,\n";
	$count++;
}
print "\tNULL
};
#endif /* HELP_C */

enum {
";

print @defs;

print "\tOP_MAX\n};\n";

