summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorjlam <jlam>2006-06-13 13:30:40 +0000
committerjlam <jlam>2006-06-13 13:30:40 +0000
commit67036e39f5960074ca21f101345109d9910f2d78 (patch)
tree986229e9736927e64ad6e2df8c6a9fcf6641334d /mk/tools
parent30c5a621af99230b4a9223a2cb8d02aa2fc60e28 (diff)
downloadpkgsrc-67036e39f5960074ca21f101345109d9910f2d78.tar.gz
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 (limited to 'mk/tools')
-rwxr-xr-xmk/tools/msgfmt.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/tools/msgfmt.sh b/mk/tools/msgfmt.sh
index 57a3e8425ea..797d91afde5 100755
--- a/mk/tools/msgfmt.sh
+++ b/mk/tools/msgfmt.sh
@@ -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 @@ while test $# -gt 0; do
-[aDo]|--alignment|--directory|--output-file)
cmd="$cmd $1 $2"; shift; shift;
;;
+ -c)
+ # skip all checks
+ shift
+ ;;
[!-]*)
pofile="$1"
cmd="$cmd -"; shift