From a005a9c4dc5588fc017a1cb1d19c1560e0e68943 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 14 Nov 2007 13:18:44 +0000 Subject: [PATCH] * doc/yacc.1.in: New. * configure.ac, doc/Makefile.am: Adjust. * configure.ac (PACKAGE_COPYRIGHT_YEAR): New substitution, and new config.h symbol. Use AC_SUBST for assignments too. * src/getargs.c (version): Use PACKAGE_COPYRIGHT_YEAR. --- ChangeLog | 9 +++++++++ configure.ac | 14 +++++++++----- doc/Makefile.am | 2 +- doc/yacc.1.in | 41 +++++++++++++++++++++++++++++++++++++++++ src/getargs.c | 3 ++- 5 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 doc/yacc.1.in diff --git a/ChangeLog b/ChangeLog index 85075523..84c0195e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-11-14 Akim Demaille + + * doc/yacc.1.in: New. + * configure.ac, doc/Makefile.am: Adjust. + * configure.ac (PACKAGE_COPYRIGHT_YEAR): New substitution, and new + config.h symbol. + Use AC_SUBST for assignments too. + * src/getargs.c (version): Use PACKAGE_COPYRIGHT_YEAR. + 2007-11-10 Joel E. Denny * src/gram.c: Remove comments that duplicate comments in gram.h. diff --git a/configure.ac b/configure.ac index a98fce2e..ecdb662e 100644 --- a/configure.ac +++ b/configure.ac @@ -20,6 +20,10 @@ AC_PREREQ(2.61) AC_INIT([GNU Bison], [2.3a+], [bug-bison@gnu.org]) +AC_DEFINE([PACKAGE_COPYRIGHT_YEAR], [2007], + [The copyright year for this package]) +AC_SUBST([PACKAGE_COPYRIGHT_YEAR], [2007]) + AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) @@ -130,10 +134,8 @@ BISON_TEST_FOR_WORKING_CXX_COMPILER AM_MISSING_PROG([AUTOM4TE], [autom4te]) # Needed by tests/atlocal.in. AC_SUBST([GCC]) -O0CFLAGS=`echo $CFLAGS | sed 's/-O[[0-9]] *//'` -AC_SUBST([O0CFLAGS]) -O0CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[[0-9]] *//'` -AC_SUBST([O0CXXFLAGS]) +AC_SUBST([O0CFLAGS], [`echo $CFLAGS | sed 's/-O[[0-9]] *//'`]) +AC_SUBST([O0CXXFLAGS], [`echo $CXXFLAGS | sed 's/-O[[0-9]] *//'`]) gt_JAVACOMP([1.3]) gt_JAVAEXEC @@ -145,5 +147,7 @@ AC_CONFIG_FILES([Makefile etc/Makefile examples/Makefile examples/calc++/Makefile - lib/Makefile src/Makefile doc/Makefile]) + lib/Makefile src/Makefile + doc/Makefile + doc/yacc.1]) AC_OUTPUT diff --git a/doc/Makefile.am b/doc/Makefile.am index a97af2bf..f04e47c5 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -66,7 +66,6 @@ neutralize = \ remove_time_stamp = \ sed 's/^\(\.TH[^"]*"[^"]*"[^"]*\)"[^"]*"/\1/' - MOSTLYCLEANFILES = $(srcdir)/*.t SUFFIXES = .x .1 @@ -97,6 +96,7 @@ PREPATH = $(top_builddir)/src fi rm -f $@*.t +nodist_man_MANS = yacc.1 ## -------------- ## ## Doxygenation. ## diff --git a/doc/yacc.1.in b/doc/yacc.1.in new file mode 100644 index 00000000..1d07483b --- /dev/null +++ b/doc/yacc.1.in @@ -0,0 +1,41 @@ +.TH YACC "1" "November 2007" "@PACKAGE_STRING@" "User Commands" +.SH NAME +yacc \- GNU Project parser generator +.SH SYNOPSIS +.B yacc +[\fIOPTION\fR]... \fIFILE\fR +.SH DESCRIPTION +.I Yacc +(Yet Another Compiler Compiler) is a parser generator. This +version is a simple wrapper around +.IR bison (1). +It passes option +\fB\-y\fR, \fB\-\-yacc\fR +to activate the upward compatibility mode. See +.IR bison (1) +for more information. +.SH AUTHOR +Written by Paul Eggert. +.SH "REPORTING BUGS" +Report bugs to <@PACKAGE_BUGREPORT@>. +.SH COPYRIGHT +Copyright \(co @PACKAGE_COPYRIGHT_YEAR@ Free Software Foundation, Inc. +.br +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +.SH "SEE ALSO" +.BR lex (1), +.BR flex (1), +.BR bison (1). +.PP +The full documentation for +.B bison +is maintained as a Texinfo manual. If the +.B info +and +.B bison +programs are properly installed at your site, the command +.IP +.B info bison +.PP +should give you access to the complete manual. diff --git a/src/getargs.c b/src/getargs.c index 48103c68..3e143aa3 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -334,7 +334,8 @@ version (void) putc ('\n', stdout); fprintf (stdout, - _("Copyright (C) %d Free Software Foundation, Inc.\n"), 2007); + _("Copyright (C) %d Free Software Foundation, Inc.\n"), + PACKAGE_COPYRIGHT_YEAR); fputs (_("\ This is free software; see the source for copying conditions. There is NO\n\ -- 2.49.0