summaryrefslogtreecommitdiff
path: root/mk
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
commit50131e16fccc65c055f8b19bd3618dd2bf7a83fc (patch)
tree986229e9736927e64ad6e2df8c6a9fcf6641334d /mk
parentd0740d4c682660c3064411edbbcf0b3289c7bdc6 (diff)
downloadpkgsrc-50131e16fccc65c055f8b19bd3618dd2bf7a83fc.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')
-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