summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-20 22:35:25 +0000
committerjlam <jlam>2006-06-20 22:35:25 +0000
commitc3435f9316dd725b9c8b5eba0ab376488f4f17a8 (patch)
treebc7eff01a18756571db93def10eac296a3f44aa8
parent2e920f1297bb6c3066e1c5150ae6c824b7f26a0c (diff)
downloadpkgsrc-c3435f9316dd725b9c8b5eba0ab376488f4f17a8.tar.gz
Allow for arbitrary whitespace on the line before seeing any of the
msg* keywords. This fixes parsing es.po in multimedia/gmencoder noted in the bulk build results: http://mail-index.netbsd.org/pkgsrc-bulk/2006/06/20/0000.html
-rwxr-xr-xmk/tools/msgfmt.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/tools/msgfmt.sh b/mk/tools/msgfmt.sh
index 797d91afde5..9b971a574d0 100755
--- a/mk/tools/msgfmt.sh
+++ b/mk/tools/msgfmt.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: msgfmt.sh,v 1.22 2006/06/13 13:30:40 jlam Exp $
+# $NetBSD: msgfmt.sh,v 1.23 2006/06/20 22:35:25 jlam Exp $
#
# Copyright (c) 2006 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -130,9 +130,9 @@ BEGIN {
SPACE = "[ ]*"
KEYWORD_SEP = "([ ]+|[ ]*\"|$)"
OBSOLETE = "#~ "
- OBSOLETE_RE = "^(#~[ ]+)?"
+ OBSOLETE_RE = "^(#~[ ]+)?[ ]*"
OBSOLETE_RE_MATCH = "^#~[ ]+"
- MSG_CONTINUATION_RE = OBSOLETE_RE "[ ]*\""
+ MSG_CONTINUATION_RE = OBSOLETE_RE "\""
result = getline
if (result < 1) exit result