summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-06-13 13:30:40 +0000
committerjlam <jlam@pkgsrc.org>2006-06-13 13:30:40 +0000
commitd3feaf59b781579f60aa7e87d895ac730fb6ea91 (patch)
tree986229e9736927e64ad6e2df8c6a9fcf6641334d /mk/tools
parent4fb338c838d7ec9b65e9c2ee9a872202dc25b5dd (diff)
downloadpkgsrc-d3feaf59b781579f60aa7e87d895ac730fb6ea91.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