pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/gettext/files Skip blank lines after msgid so th...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3b855bc8bba8
branches: trunk
changeset: 510933:3b855bc8bba8
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Thu Apr 06 21:42:23 2006 +0000
description:
Skip blank lines after msgid so that "incorrectly formatted" po files do
not break when using this script. This should avoid having to patch some
po files to "fix" them.
diffstat:
devel/gettext/files/msgfmt.pl | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 987009639f20 -r 3b855bc8bba8 devel/gettext/files/msgfmt.pl
--- a/devel/gettext/files/msgfmt.pl Thu Apr 06 19:47:46 2006 +0000
+++ b/devel/gettext/files/msgfmt.pl Thu Apr 06 21:42:23 2006 +0000
@@ -1,11 +1,11 @@
#!@PERL@
#
-# $NetBSD: msgfmt.pl,v 1.2 2005/08/20 12:04:09 jmmv Exp $
+# $NetBSD: msgfmt.pl,v 1.3 2006/04/06 21:42:23 jmmv Exp $
#
# msgfmt.pl - Workaround uses of msgid_plural to work with implementations
# that don't support it.
#
-# Copyright (c) 2004, 2005 Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
+# Copyright (c) 2004, 2005, 2006 Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -70,6 +70,8 @@
if (/^msgid[ \t]+(.*)$/) {
push @msgid_singular, "$1\n";
while (<INFILE>) {
+ next if /^$/;
+
if (/^[ \t]*"/) {
push @msgid_singular, $_;
} else {
Home |
Main Index |
Thread Index |
Old Index