pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools At the point where we invoke msgfmt during th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/be1f88587562
branches:  trunk
changeset: 514499:be1f88587562
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Jun 13 13:30:40 2006 +0000

description:
At the point where we invoke msgfmt during the build phase, the software
author has presumably given us valid *.po files, so skip performing
validity checks on the *.po file.  This fixes building software where
the author has actually *not* produced proper *.po files, e.g.
net/gtk-gnutella, where the de.po files have msgid/msgstr pairs that
do not have matching numbers of format specifiers (%[a-z]).

diffstat:

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

diffs (22 lines):

diff -r 2249562572f9 -r be1f88587562 mk/tools/msgfmt.sh
--- a/mk/tools/msgfmt.sh        Tue Jun 13 13:24:35 2006 +0000
+++ b/mk/tools/msgfmt.sh        Tue Jun 13 13:30:40 2006 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: msgfmt.sh,v 1.21 2006/06/05 13:36:14 jlam Exp $
+# $NetBSD: msgfmt.sh,v 1.22 2006/06/13 13:30:40 jlam Exp $
 #
 # Copyright (c) 2006 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -97,6 +97,10 @@
        -[aDo]|--alignment|--directory|--output-file)
                cmd="$cmd $1 $2"; shift; shift;
                ;;
+       -c)
+               # skip all checks
+               shift
+               ;;
        [!-]*)
                pofile="$1"
                cmd="$cmd -"; shift



Home | Main Index | Thread Index | Old Index