mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
skeleton; a C++ expert needs to finish this. Remove debugging msgids; there's little point to having them translated, since they can be understood only by someone who can read the (English-language) source code. Generate runtime-po/bison-runtime.pot automatically, so that we don't have to worry about garbage getting in that file. We'll make sure after the next official release that old msgids don't get lost. See <http://lists.gnu.org/archive/html/bison-patches/2005-07/msg00119.html>. * runtime-po/Makefile.in.in, runtime-po/bison-runtime.pot: Remove. Now auto-generated. * PACKAGING: Don't claim that Gawk, GCC, Perl use this method yet. Fix typos in explanations of the runtime file. * bootstrap: Change gettext keyword from YYI18N to YY_. Use standard Makefile.in.in in runtime-po, since we'll arrange for backward-compatible bison-runtime.po files in a different way. * data/glr.c (YY_): New macro, from yacc.c. (yyuserAction, yyreportAmbiguity, yyreportSyntaxError, yyparse): Translate messages intended for users. (yyreportSyntaxError): Change "virtual memory" to "memory" to match the wording in the other skeletons. We don't know that the memory is virtual. * data/lalr1.cc (YY_): Renamed from _. All uses changed. Use same method that yacc.c uses. Don't translate debugging messages. (yy::yyreport_syntax_error): Put in a FIXME for the i18n stuff; it doesn't work (yet), and requires C++ expertise to fix. * data/yacc.c (YY_): Renamed from YY18N. All uses changed. Move defn to a more logical place, to be consistent with other skeletons. Don't translate debugging messages. Don't assume line numbers fit in unsigned int; use unsigned long fmts. * doc/bison.texinfo: Mention <libintl.h>. Change glibc cross reference to gettext cross reference. Add indexing terms. Mention YYENABLE_NLS. * runtime-po/POTFILES.in: Add data/glr.c, data/lalr1.cc.
57 lines
1.9 KiB
Plaintext
57 lines
1.9 KiB
Plaintext
Packaging hints for binary package distributors
|
|
===============================================
|
|
|
|
Although the source of the bison package comes as a single package,
|
|
in distributions of binary packages the installed files should
|
|
be split into two packages:
|
|
|
|
bison-runtime
|
|
Contents: Runtime libraries and programs.
|
|
Audience: Anyone who wants to run internationalized programs
|
|
that contain Bison-generated parsers.
|
|
|
|
bison
|
|
Contents: Tools and documentation for developers that use Bison.
|
|
Audience: Anyone who wants to develop programs that use parsers.
|
|
Dependencies: requires bison-runtime.
|
|
|
|
The 'bison-runtime' binary package is much smaller than the 'bison'
|
|
binary package. It should be included in any distribution that
|
|
contains localized programs that use the diagnostics contained in
|
|
Bison-generated parsers.
|
|
|
|
If you want to install both packages at the same time, you simply do
|
|
at the toplevel directory:
|
|
|
|
./configure
|
|
make
|
|
make install
|
|
|
|
After installation, the file
|
|
|
|
$prefix/share/locale/*/LC_MESSAGES/bison-runtime.mo
|
|
|
|
belongs to the bison-runtime package; all other installed files belong
|
|
to the bison package.
|
|
|
|
-----
|
|
|
|
Copyright (C) 2002, 2005 Free Software Foundation, Inc.
|
|
|
|
This file is part of Bison, the GNU Compiler Compiler.
|
|
|
|
Bison is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
any later version.
|
|
|
|
Bison is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with autoconf; see the file COPYING. If not, write to
|
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
Boston, MA 02110-1301, USA.
|