diff options
Diffstat (limited to 'tools/genlang')
-rwxr-xr-x | tools/genlang | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/genlang b/tools/genlang index f4eb698a8f..21cef9966b 100755 --- a/tools/genlang +++ b/tools/genlang | |||
@@ -540,6 +540,10 @@ if($prefix) { | |||
540 | open(CFILE, ">$prefix.c") || | 540 | open(CFILE, ">$prefix.c") || |
541 | die "Error: couldn't create file $prefix.c\n"; | 541 | die "Error: couldn't create file $prefix.c\n"; |
542 | 542 | ||
543 | # get header file name | ||
544 | $headername = "$prefix.h"; | ||
545 | $headername =~ s/(.*\/)*//; | ||
546 | |||
543 | print HFILE <<MOO | 547 | print HFILE <<MOO |
544 | /* This file was automatically generated using genlang */ | 548 | /* This file was automatically generated using genlang */ |
545 | /* | 549 | /* |
@@ -564,7 +568,7 @@ MOO | |||
564 | /* This file was automaticly generated using genlang, the strings come | 568 | /* This file was automaticly generated using genlang, the strings come |
565 | from "$input" */ | 569 | from "$input" */ |
566 | 570 | ||
567 | #include "$prefix.h" | 571 | #include "$headername" |
568 | 572 | ||
569 | unsigned char *language_strings[LANG_LAST_INDEX_IN_ARRAY]; | 573 | unsigned char *language_strings[LANG_LAST_INDEX_IN_ARRAY]; |
570 | const unsigned char language_builtin[] = | 574 | const unsigned char language_builtin[] = |