CVS log for pkgsrc/mk/tools/msgfmt.sh
Up to [cvs.NetBSD.org] / pkgsrc / mk / tools
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Nov 13 18:54:56 2023 UTC (3 years ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base,
pkgsrc-2026Q3,
pkgsrc-2026Q2-base,
pkgsrc-2026Q2,
pkgsrc-2026Q1-base,
pkgsrc-2026Q1,
pkgsrc-2025Q4-base,
pkgsrc-2025Q4,
pkgsrc-2025Q3-base,
pkgsrc-2025Q3,
pkgsrc-2025Q2-base,
pkgsrc-2025Q2,
pkgsrc-2025Q1-base,
pkgsrc-2025Q1,
pkgsrc-2024Q4-base,
pkgsrc-2024Q4,
pkgsrc-2024Q3-base,
pkgsrc-2024Q3,
pkgsrc-2024Q2-base,
pkgsrc-2024Q2,
pkgsrc-2024Q1-base,
pkgsrc-2024Q1,
pkgsrc-2023Q4-base,
pkgsrc-2023Q4,
HEAD
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +1 -3
lines
mk: remove comment referencing two gnome packages
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Aug 22 20:48:37 2018 UTC (8 years, 2 months ago) by maya
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base,
pkgsrc-2023Q3,
pkgsrc-2023Q2-base,
pkgsrc-2023Q2,
pkgsrc-2023Q1-base,
pkgsrc-2023Q1,
pkgsrc-2022Q4-base,
pkgsrc-2022Q4,
pkgsrc-2022Q3-base,
pkgsrc-2022Q3,
pkgsrc-2022Q2-base,
pkgsrc-2022Q2,
pkgsrc-2022Q1-base,
pkgsrc-2022Q1,
pkgsrc-2021Q4-base,
pkgsrc-2021Q4,
pkgsrc-2021Q3-base,
pkgsrc-2021Q3,
pkgsrc-2021Q2-base,
pkgsrc-2021Q2,
pkgsrc-2021Q1-base,
pkgsrc-2021Q1,
pkgsrc-2020Q4-base,
pkgsrc-2020Q4,
pkgsrc-2020Q3-base,
pkgsrc-2020Q3,
pkgsrc-2020Q2-base,
pkgsrc-2020Q2,
pkgsrc-2020Q1-base,
pkgsrc-2020Q1,
pkgsrc-2019Q4-base,
pkgsrc-2019Q4,
pkgsrc-2019Q3-base,
pkgsrc-2019Q3,
pkgsrc-2019Q2-base,
pkgsrc-2019Q2,
pkgsrc-2019Q1-base,
pkgsrc-2019Q1,
pkgsrc-2018Q4-base,
pkgsrc-2018Q4,
pkgsrc-2018Q3-base,
pkgsrc-2018Q3
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +1 -8
lines
Remove clauses 3,4 from TNF-only copyright blocks.
This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.
This change has been applied to code which is likely not in other
repositories.
ok board@, reviewed by riastradh@
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Apr 10 00:46:23 2010 UTC (16 years, 7 months ago) by obache
Branches: MAIN
CVS tags: pkgsrc-2018Q2-base,
pkgsrc-2018Q2,
pkgsrc-2018Q1-base,
pkgsrc-2018Q1,
pkgsrc-2017Q4-base,
pkgsrc-2017Q4,
pkgsrc-2017Q3-base,
pkgsrc-2017Q3,
pkgsrc-2017Q2-base,
pkgsrc-2017Q2,
pkgsrc-2017Q1-base,
pkgsrc-2017Q1,
pkgsrc-2016Q4-base,
pkgsrc-2016Q4,
pkgsrc-2016Q3-base,
pkgsrc-2016Q3,
pkgsrc-2016Q2-base,
pkgsrc-2016Q2,
pkgsrc-2016Q1-base,
pkgsrc-2016Q1,
pkgsrc-2015Q4-base,
pkgsrc-2015Q4,
pkgsrc-2015Q3-base,
pkgsrc-2015Q3,
pkgsrc-2015Q2-base,
pkgsrc-2015Q2,
pkgsrc-2015Q1-base,
pkgsrc-2015Q1,
pkgsrc-2014Q4-base,
pkgsrc-2014Q4,
pkgsrc-2014Q3-base,
pkgsrc-2014Q3,
pkgsrc-2014Q2-base,
pkgsrc-2014Q2,
pkgsrc-2014Q1-base,
pkgsrc-2014Q1,
pkgsrc-2013Q4-base,
pkgsrc-2013Q4,
pkgsrc-2013Q3-base,
pkgsrc-2013Q3,
pkgsrc-2013Q2-base,
pkgsrc-2013Q2,
pkgsrc-2013Q1-base,
pkgsrc-2013Q1,
pkgsrc-2012Q4-base,
pkgsrc-2012Q4,
pkgsrc-2012Q3-base,
pkgsrc-2012Q3,
pkgsrc-2012Q2-base,
pkgsrc-2012Q2,
pkgsrc-2012Q1-base,
pkgsrc-2012Q1,
pkgsrc-2011Q4-base,
pkgsrc-2011Q4,
pkgsrc-2011Q3-base,
pkgsrc-2011Q3,
pkgsrc-2011Q2-base,
pkgsrc-2011Q2,
pkgsrc-2011Q1-base,
pkgsrc-2011Q1,
pkgsrc-2010Q4-base,
pkgsrc-2010Q4,
pkgsrc-2010Q3-base,
pkgsrc-2010Q3,
pkgsrc-2010Q2-base,
pkgsrc-2010Q2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +1 -3
lines
strip \r in awk script, avoid to extra `tr' exec.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Apr 9 15:44:17 2010 UTC (16 years, 7 months ago) by wiz
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -1
lines
Use patch from obache that strips out DOS line endings.
Needed at least for graphics/gimp.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Mar 27 14:44:36 2009 UTC (17 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2010Q1-base,
pkgsrc-2010Q1,
pkgsrc-2009Q4-base,
pkgsrc-2009Q4,
pkgsrc-2009Q3-base,
pkgsrc-2009Q3,
pkgsrc-2009Q2-base,
pkgsrc-2009Q2,
pkgsrc-2009Q1-base,
pkgsrc-2009Q1
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -2
lines
Pass some additional options down as used by the scmgit-base build.
Tested by full bulk build, ok wiz@
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Mar 22 17:57:58 2009 UTC (17 years, 7 months ago) by joerg
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3
lines
Rename MSGFMT_STRIP_MSGCTX to MSGFMT_STRIP_MSGCTXT to reflect what is
stripped. Allow the script to be used for pkgsrc msgfmt as well. Set
MSGFMT_STRIP_MSGCTXT automatically for msgfmt before 0.15.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Mar 20 16:13:02 2009 UTC (17 years, 8 months ago) by joerg
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +11 -260
lines
Refactor msgfmt.sh script to conditionally strip the msgid_plural for
old NetBSD versions and to strip msgctx if requested by the package.
This allows to replace the use of msgfmtstrip in various packages by
setting MSGFMT_STRIP_MSGCTX.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Sep 25 10:32:17 2007 UTC (19 years, 1 month ago) by hira
Branches: MAIN
CVS tags: pkgsrc-2008Q4-base,
pkgsrc-2008Q4,
pkgsrc-2008Q3-base,
pkgsrc-2008Q3,
pkgsrc-2008Q2-base,
pkgsrc-2008Q2,
pkgsrc-2008Q1-base,
pkgsrc-2008Q1,
pkgsrc-2007Q4-base,
pkgsrc-2007Q4,
pkgsrc-2007Q3-base,
pkgsrc-2007Q3,
cwrapper,
cube-native-xorg-base,
cube-native-xorg
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2
lines
Fix a comment (gnome-vfs2 -> gnome-vfs).
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu May 10 15:42:29 2007 UTC (19 years, 6 months ago) by obache
Branches: MAIN
CVS tags: pkgsrc-2007Q2-base,
pkgsrc-2007Q2
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -2
lines
Recognize argment "-" as $pofile.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon May 7 09:31:05 2007 UTC (19 years, 6 months ago) by obache
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +10 -7
lines
Change input file lookup behavior to close to gnu msgfmt's implementation.
* allow "-" (stdin)
* allow other than regurar file (should fix PR 36257).
* if doesn't exist, try to append extension ".po" and ".pot".
Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Dec 15 13:15:07 2006 UTC (19 years, 11 months ago) by martti
Branches: MAIN
CVS tags: pkgsrc-2007Q1-base,
pkgsrc-2007Q1,
pkgsrc-2006Q4-base,
pkgsrc-2006Q4,
jlam-pkgviews-base,
jlam-pkgviews
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2
lines
Remove trailing tabs.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jun 23 21:05:43 2006 UTC (20 years, 4 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2006Q3-base,
pkgsrc-2006Q3,
pkgsrc-2006Q2-base,
pkgsrc-2006Q2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +49 -1
lines
Change the way that "\c" is processed within the msg strings: if we
see \c, where c is anything but a legal character as defined by
msgfmt-0.10.35, then replace the backslash with a '?'. Yes, this is
a hack, but it works around a bug in the way that older msgfmt
mis-identifies some "control" sequences. This fixes building of
zh_TW.po in x11/matchbox-panel as noted in the bulk build results:
http://mail-index.netbsd.org/pkgsrc-bulk/2006/06/20/0000.html
While here, note in a header comment which packages' *.po files to
use for regression tests whenever changes to this file are made.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Jun 20 23:11:36 2006 UTC (20 years, 5 months ago) by jlam
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +16 -1
lines
Executiing "msgfmt ru" should look for "ru" and then "ru.po" for
processing. Allow for this possiblity by falling through both names
when given input files. This fixes the builds of sysutils/dfuibe_installer
and sysutils/dfuife_curses noted in the bulk build results:
http://mail-index.netbsd.org/pkgsrc-bulk/2006/06/20/0000.html
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Jun 20 22:35:25 2006 UTC (20 years, 5 months ago) by jlam
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
Allow for arbitrary whitespace on the line before seeing any of the
msg* keywords. This fixes parsing es.po in multimedia/gmencoder noted
in the bulk build results:
http://mail-index.netbsd.org/pkgsrc-bulk/2006/06/20/0000.html
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Jun 13 13:30:40 2006 UTC (20 years, 5 months ago) by jlam
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -1
lines
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]).
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Jun 5 13:36:14 2006 UTC (20 years, 5 months ago) by jlam
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -10
lines
Minor fix for last commit... in the case where msgstr is just the
empty string (because no translation has yet been made), it's okay to
have mismatching "\n" in the msgid and msgstr texts. This should fix
PR pkg/33645 by Carl Brewer.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Jun 4 23:18:38 2006 UTC (20 years, 5 months ago) by jlam
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +77 -15
lines
Extend msgfmt.sh script to handle the following cases:
(1) "msgstr" not followed by any string (GNU extension), e.g.
msgid "foo"
msgstr
"bar"
(2) "\n" mismatch between msgid and msgstr, e.g.
msgid "foo\n"
msgstr "bar"
This fixes .po compilation problems in www/epiphany and
multimedia/gnome2-media.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat May 20 23:29:42 2006 UTC (20 years, 6 months ago) by jlam
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +27 -18
lines
Modify msgfmt.sh to make the following changes when filtering *.po files:
msgid -> msgid ""
msgid"..." -> msgid "..."
msgstr -> msgstr ""
msgstr"..." -> msgstr "..."
The filtered *.po files can then be processed by msgfmt<=0.10.35.
These changes workaround bugs in *.po files in software of the "all
the world runs Linux" variety where the software author either willfully
or stupidly can't follow the format for *.po files described in section
2.2 of the gettext info manual and, in addition, makes lame excuses
when confronted with the evidence.
This closes PR pkg/33506 by Ben Collver.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat May 20 22:13:23 2006 UTC (20 years, 6 months ago) by jlam
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2
lines
We can simplify MSGSTRN_RE because we already catch the msgstr[0] and
msgstr[1] cases earlier.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat May 20 22:10:18 2006 UTC (20 years, 6 months ago) by jlam
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +16 -16
lines
Rename ORE to OBSOLETE_RE for more clarity in the variable name.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat May 20 22:06:34 2006 UTC (20 years, 6 months ago) by jlam
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2
lines
Restore "unnecessary" variable... sometimes we use named constants for
documentation/readability purposes...
Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed May 10 22:03:07 2006 UTC (20 years, 6 months ago) by rillig
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -3
lines
Don't let this program get confused just because there is no white-space
between msgstr and the following string. The bug showed off at
icewm-1.2.25, file po/tr.po, line 774. While at it, removed an
unnecessary variable.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Apr 15 04:41:08 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -10
lines
Reorder the loop so that we can never get into an infinite loop. We
now pass every line we don't need to process directly through to
msgfmt. This fixes building pt_BR.po in libgnomedb where all of the
lines end with "^M" and this script wasn't properly detecting a blank
line as a result.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Apr 15 04:32:02 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +27 -13
lines
Modify the loop so that the statements and comment lines can be
interspersed.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Apr 15 01:36:40 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +10 -8
lines
Replace a re-used regular expression with a constant.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Apr 14 22:37:38 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +14 -1
lines
Drop all msgstr[N] translations besides msgstr[0] and msgstr[1] because
those translations can have no corresponding msgid anchor in the old
PO file format. This allows all of the *.po files in gnome-vfs2 to
build correctly into *.mo files.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Apr 14 22:23:25 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +103 -99
lines
Whitespace changes for proper indentation.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Apr 14 22:21:04 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -4
lines
Remove debugging code so that we actually invoke msgfmt.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Apr 14 22:16:33 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +70 -64
lines
Avoid using the awk input loop and use our own while loop in a BEGIN
statement. While here fix processing of *.po files containing obsolete
statements by preserving them for msgfmt to handle. Also use a few
more constants to make the code more maintainable and readable.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Apr 14 14:40:34 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +16 -2
lines
Support a --debug flag that dumps the output of the awk script to a
*.debug file.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Apr 14 14:06:54 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +10 -3
lines
Now that I understand why we strip "#~" from the head of lines, strip
it consistently whenever we read a new line of input throughout the
script. Note that this was actually broken in the original msgfmt.pl
script as well.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Apr 14 13:49:17 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2
lines
Use the correct cat command.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Apr 14 13:43:23 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +6 -2
lines
Document the puzzling line that strips "#~" from the start of lines.
Explanation provided by jmmv in private email.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Apr 14 13:40:07 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +36 -1
lines
Add TNF copyright to file as suggested by jmmv in private email.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Apr 13 19:41:22 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -1
lines
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.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Apr 13 16:35:58 2006 UTC (20 years, 7 months ago) by jlam
Branches: MAIN
Overhaul the way packages can ask for "msgfmt". If a package needs
msgfmt, then it should set the following in the package Makefile:
USE_TOOLS+= msgfmt
To deal with message files that use the "msgid_plural" statement,
which isn't supported in NetBSD<=3.x and also in gettext<=0.10.35, we
determine if the built-in "msgfmt" is sufficiently new enough to
understand "msgid_plural". If it isn't, then we use the msgfmt.sh
script to transform the msgid_plural statements to an equivalent
construct that's understood by older msgfmt tools.
The msgfmt.sh script is a straightforward translation of the original
perl script msgfmt.pl script by Julio M. Merino Vidal into shell and
awk, which are more lightweight dependencies than perl.
We remove the USE_MSGFMT_PLURALS bits in gettext-lib/builtin.mk as they
are made obsolete by the new code in mk/tools/msgfmt.mk.
BUILD_USE_MSGFMT is still supported but will be removed in a separate
commit.
CVSweb <webmaster@jp.NetBSD.org>