diff options
Diffstat (limited to 'tools/genlang')
-rwxr-xr-x | tools/genlang | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/genlang b/tools/genlang index 9f9e904312..05183b8d67 100755 --- a/tools/genlang +++ b/tools/genlang | |||
@@ -535,13 +535,13 @@ if ($sortfile) { | |||
535 | if($prefix) { | 535 | if($prefix) { |
536 | # We create a .c and .h file | 536 | # We create a .c and .h file |
537 | 537 | ||
538 | open(HFILE, ">$prefix.h") || | 538 | open(HFILE, ">$prefix/lang.h") || |
539 | die "Error: couldn't create file $prefix.h\n"; | 539 | die "Error: couldn't create file $prefix/lang.h\n"; |
540 | open(CFILE, ">$prefix.c") || | 540 | open(CFILE, ">$prefix/lang_core.c") || |
541 | die "Error: couldn't create file $prefix.c\n"; | 541 | die "Error: couldn't create file $prefix/lang_core.c\n"; |
542 | 542 | ||
543 | # get header file name | 543 | # get header file name |
544 | $headername = "$prefix.h"; | 544 | $headername = "$prefix/lang.h"; |
545 | $headername =~ s/(.*\/)*//; | 545 | $headername =~ s/(.*\/)*//; |
546 | 546 | ||
547 | print HFILE <<MOO | 547 | print HFILE <<MOO |