summaryrefslogtreecommitdiffstats
path: root/tools/genlang
diff options
context:
space:
mode:
Diffstat (limited to 'tools/genlang')
-rwxr-xr-xtools/genlang6
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) {
open(CFILE, ">$prefix.c") ||
die "Error: couldn't create file $prefix.c\n";
+ # get header file name
+ $headername = "$prefix.h";
+ $headername =~ s/(.*\/)*//;
+
print HFILE <<MOO
/* This file was automatically generated using genlang */
/*
@@ -564,7 +568,7 @@ MOO
/* This file was automaticly generated using genlang, the strings come
from "$input" */
-#include "$prefix.h"
+#include "$headername"
unsigned char *language_strings[LANG_LAST_INDEX_IN_ARRAY];
const unsigned char language_builtin[] =