summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-06-20 22:35:25 +0000
committerjlam <jlam@pkgsrc.org>2006-06-20 22:35:25 +0000
commit1c971f32bc8f075dec7c6c11c690ea9440cdc29f (patch)
treebc7eff01a18756571db93def10eac296a3f44aa8 /mk/tools
parentfbb62e6625acd8572a4142838f36da6e635dfdc8 (diff)
downloadpkgsrc-1c971f32bc8f075dec7c6c11c690ea9440cdc29f.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
Diffstat (limited to 'mk/tools')
-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