summaryrefslogtreecommitdiffstats
path: root/common/mkstrtable.awk
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-04-16 06:24:10 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2019-04-16 06:24:10 +0200
commitb6f0b0efa19e0434024bc16e246032b613fd448a (patch)
tree623f7b831dd6d191a0b4f2fc5227554ba0a49b82 /common/mkstrtable.awk
parentgpg: New caching functions. (diff)
downloadgnupg2-b6f0b0efa19e0434024bc16e246032b613fd448a.tar.xz
gnupg2-b6f0b0efa19e0434024bc16e246032b613fd448a.zip
common: Fix AWK portability.
* common/Makefile.am: Use pkg_namespace. * common/mkstrtable.awk: Use pkg_namespace. Regexp fix. -- GnuPG-bug-Bug: 4459 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'common/mkstrtable.awk')
-rw-r--r--common/mkstrtable.awk10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/mkstrtable.awk b/common/mkstrtable.awk
index b5d4ef07a..60efce8a3 100644
--- a/common/mkstrtable.awk
+++ b/common/mkstrtable.awk
@@ -76,7 +76,7 @@
#
# The variable prefix can be used to prepend a string to each message.
#
-# The variable namespace can be used to prepend a string to each
+# The variable pkg_namespace can be used to prepend a string to each
# variable and macro name.
BEGIN {
@@ -101,7 +101,7 @@ header {
print "/* The purpose of this complex string table is to produce";
print " optimal code with a minimum of relocations. */";
print "";
- print "static const char " namespace "msgstr[] = ";
+ print "static const char " pkg_namespace "msgstr[] = ";
header = 0;
}
else
@@ -109,7 +109,7 @@ header {
}
!header {
- sub (/\#.+/, "");
+ sub (/#.+/, "");
sub (/[ ]+$/, ""); # Strip trailing space and tab characters.
if (/^$/)
@@ -149,14 +149,14 @@ END {
else
print " gettext_noop (\"" prefix last_msgstr "\");";
print "";
- print "static const int " namespace "msgidx[] =";
+ print "static const int " pkg_namespace "msgidx[] =";
print " {";
for (i = 0; i < coded_msgs; i++)
print " " pos[i] ",";
print " " pos[coded_msgs];
print " };";
print "";
- print "#define " namespace "msgidxof(code) (0 ? -1 \\";
+ print "#define " pkg_namespace "msgidxof(code) (0 ? -1 \\";
# Gather the ranges.
skip = code[0];