summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-05-05 00:34:22 +0000
committerobache <obache@pkgsrc.org>2013-05-05 00:34:22 +0000
commit5e9b176d74c45a4d9c0d0ed9a2c4f1ff12d71f9f (patch)
tree3b6525eea253faa1112afbeae4bd5abc2d2dcc7e /mk
parent7a82cc010444978584a784b396ff4bd97c9d433c (diff)
downloadpkgsrc-5e9b176d74c45a4d9c0d0ed9a2c4f1ff12d71f9f.tar.gz
fixes obsolete pattern check, move to before push msgctxt.
Diffstat (limited to 'mk')
-rw-r--r--mk/tools/msgfmt-msgctxt.awk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/tools/msgfmt-msgctxt.awk b/mk/tools/msgfmt-msgctxt.awk
index c9ff0b3f6c3..ff834e87b84 100644
--- a/mk/tools/msgfmt-msgctxt.awk
+++ b/mk/tools/msgfmt-msgctxt.awk
@@ -1,4 +1,4 @@
-# $NetBSD: msgfmt-msgctxt.awk,v 1.4 2013/05/03 12:31:43 obache Exp $
+# $NetBSD: msgfmt-msgctxt.awk,v 1.5 2013/05/05 00:34:22 obache Exp $
#
# Simple awk script to strip out .po entries with msgctxt and "#~|", so the
# resultant file can be handled by the msgfmt<0.15.
@@ -57,13 +57,14 @@ BEGIN {
#
MSGID_RE = OBSOLETE_RE "msgid"
if ($0 ~ MSGID_RE KEYWORD_SEP) {
+ obsolete = ""
+ if ($0 ~ OBSOLETE_RE_MATCH) obsolete = OBSOLETE
if (s > 0) {
print obsolete "msgid " singular[0]
for (i = 1; i < s; i++)
print obsolete singular[i]
print obsolete "\"\\004\""
}
- if ($0 ~ OBSOLETE_RE_MATCH) obsolete = OBSOLETE
sub(MSGID_RE SPACE, "")
t = 0
if ($0 ~ EMPTY) $0 = "\"\""