diff options
author | obache <obache> | 2010-04-10 00:46:23 +0000 |
---|---|---|
committer | obache <obache> | 2010-04-10 00:46:23 +0000 |
commit | 41425e52b07847d649f5faa3c31e25e8326a96ff (patch) | |
tree | 67ce0fbd7968663013e6b32caf1d3b1f18cfad84 /mk/tools/msgfmt-msgctxt.awk | |
parent | 910bbfdcb2a61068c240b7a5b8423a922bdcef44 (diff) | |
download | pkgsrc-41425e52b07847d649f5faa3c31e25e8326a96ff.tar.gz |
strip \r in awk script, avoid to extra `tr' exec.
Diffstat (limited to 'mk/tools/msgfmt-msgctxt.awk')
-rw-r--r-- | mk/tools/msgfmt-msgctxt.awk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/tools/msgfmt-msgctxt.awk b/mk/tools/msgfmt-msgctxt.awk index 271e6642972..f7cfee3e0eb 100644 --- a/mk/tools/msgfmt-msgctxt.awk +++ b/mk/tools/msgfmt-msgctxt.awk @@ -1,8 +1,9 @@ -# $NetBSD: msgfmt-msgctxt.awk,v 1.1 2009/03/20 16:13:02 joerg Exp $ +# $NetBSD: msgfmt-msgctxt.awk,v 1.2 2010/04/10 00:46:23 obache Exp $ # # Simple awk script to strip out .po entries with "msgctxt" or "#~|", so the # resultant file can be handled by the msgfmt 0.14.x. { +sub(/\r$/, "") if (/^$/) { entry_end(); } else if ($1 == "msgctxt" || $2 == "msgctxt") { skip = 1; } else if ($1 == "#~|") { skip = 1; } |