summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-05-20 22:06:34 +0000
committerjlam <jlam@pkgsrc.org>2006-05-20 22:06:34 +0000
commitb22f80a435f6f96f0e6e3ee0864e6df17b9f5d3f (patch)
tree952dba1d24c0f521722a7152e28c691fd22e0ee9 /mk
parentc9605e7570751887a90ab6fa6b6e821de711b0b5 (diff)
downloadpkgsrc-b22f80a435f6f96f0e6e3ee0864e6df17b9f5d3f.tar.gz
Restore "unnecessary" variable... sometimes we use named constants for
documentation/readability purposes...
Diffstat (limited to 'mk')
-rwxr-xr-xmk/tools/msgfmt.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/tools/msgfmt.sh b/mk/tools/msgfmt.sh
index cd457f72ac3..39703a25d98 100755
--- a/mk/tools/msgfmt.sh
+++ b/mk/tools/msgfmt.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: msgfmt.sh,v 1.15 2006/05/10 22:03:07 rillig Exp $
+# $NetBSD: msgfmt.sh,v 1.16 2006/05/20 22:06:34 jlam Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -174,7 +174,8 @@ BEGIN {
# the contents of the singular array and output the
# "msgstr" translation.
#
- if ($0 ~ (ORE "msgstr[ ]*\"")) {
+ MSGSTR_RE = ORE "msgstr[ ]*\""
+ if ($0 ~ MSGSTR_RE) {
if (s > 0) {
print obsolete "msgid " singular[0]
for (i = 1; i < s; i++)