pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/tools Document the puzzling line that strips "#~" f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9f2511952086
branches:  trunk
changeset: 511429:9f2511952086
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Apr 14 13:43:23 2006 +0000

description:
Document the puzzling line that strips "#~" from the start of lines.
Explanation provided by jmmv in private email.

diffstat:

 mk/tools/msgfmt.sh |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r dc72e57eca31 -r 9f2511952086 mk/tools/msgfmt.sh
--- a/mk/tools/msgfmt.sh        Fri Apr 14 13:40:07 2006 +0000
+++ b/mk/tools/msgfmt.sh        Fri Apr 14 13:43:23 2006 +0000
@@ -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 @@
 {
        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.



Home | Main Index | Thread Index | Old Index