diff options
author | obache <obache@pkgsrc.org> | 2013-05-05 00:34:22 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2013-05-05 00:34:22 +0000 |
commit | 0f709469e84f84a91ff9b9381672915ebc52e09a (patch) | |
tree | 3b6525eea253faa1112afbeae4bd5abc2d2dcc7e /mk | |
parent | 3ac908c1368c5951feb4bc174124f70bc9e1e836 (diff) | |
download | pkgsrc-0f709469e84f84a91ff9b9381672915ebc52e09a.tar.gz |
fixes obsolete pattern check, move to before push msgctxt.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/tools/msgfmt-msgctxt.awk | 5 |
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 = "\"\"" |