summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2006-04-14 13:43:23 +0000
committerjlam <jlam>2006-04-14 13:43:23 +0000
commit3bb1d915c28ddd253dd2f812e8f4aec6280e23be (patch)
treeacda8b4495dcf2e6cbafa44c12995bd66e701c2a /mk
parentf67ad5029bf8496c629509f21c2c0c51a866d650 (diff)
downloadpkgsrc-3bb1d915c28ddd253dd2f812e8f4aec6280e23be.tar.gz
Document the puzzling line that strips "#~" from the start of lines.
Explanation provided by jmmv in private email.
Diffstat (limited to 'mk')
-rwxr-xr-xmk/tools/msgfmt.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/tools/msgfmt.sh b/mk/tools/msgfmt.sh
index 30f0f5086e0..01214ba22b0 100755
--- a/mk/tools/msgfmt.sh
+++ b/mk/tools/msgfmt.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: msgfmt.sh,v 1.3 2006/04/14 13:40:07 jlam Exp $
+# $NetBSD: msgfmt.sh,v 1.4 2006/04/14 13:43:23 jlam Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -109,7 +109,11 @@ cat $pofile | ${AWK} '
{
s = 0
p = 0
-
+
+ # Treat "obsolete" messages identically with non-"obsolete"
+ # ones so that we do not need to specially handle lines
+ # starting with "#~".
+ #
sub("^#~", "")
# Buffer any "msgid" statements into the singular array.