diff options
author | jlam <jlam> | 2006-04-13 19:41:22 +0000 |
---|---|---|
committer | jlam <jlam> | 2006-04-13 19:41:22 +0000 |
commit | 043e0d0fec9e27c678ba593ef97088696b29df2e (patch) | |
tree | 8a0477dffd2eefe04dd624802b7a2a3ccda69247 /mk | |
parent | a4779b345ea3e434563d9fc892bfa9d1148735e8 (diff) | |
download | pkgsrc-043e0d0fec9e27c678ba593ef97088696b29df2e.tar.gz |
Do a bit more error-checking -- if no input file is specified, just run
the msgfmt command to get the right error message and return code.
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/tools/msgfmt.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/tools/msgfmt.sh b/mk/tools/msgfmt.sh index cb09303168c..80d409c2c52 100755 --- a/mk/tools/msgfmt.sh +++ b/mk/tools/msgfmt.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: msgfmt.sh,v 1.1 2006/04/13 16:35:58 jlam Exp $ +# $NetBSD: msgfmt.sh,v 1.2 2006/04/13 19:41:22 jlam Exp $ # # Copyright (c) 2004, 2005, 2006 Julio M. Merino Vidal <jmmv@NetBSD.org> # @@ -45,6 +45,7 @@ fi # Parse the command line options. version= +pofile= cmd="${MSGFMT}" while test $# -gt 0; do case "$1" in @@ -67,6 +68,7 @@ done # If we are asked for just the version, then avoid spawning awk. test -z "$version" || exec $cmd +test -n "$pofile" || exec $cmd cat $pofile | ${AWK} ' { |