summaryrefslogtreecommitdiff
path: root/mk/tools/msgfmt-msgctxt.awk
diff options
context:
space:
mode:
authorobache <obache>2010-04-10 00:46:23 +0000
committerobache <obache>2010-04-10 00:46:23 +0000
commit41425e52b07847d649f5faa3c31e25e8326a96ff (patch)
tree67ce0fbd7968663013e6b32caf1d3b1f18cfad84 /mk/tools/msgfmt-msgctxt.awk
parent910bbfdcb2a61068c240b7a5b8423a922bdcef44 (diff)
downloadpkgsrc-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.awk3
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; }