bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: Generate bison.1


From: Akim Demaille
Subject: Re: FYI: Generate bison.1
Date: Wed, 14 Nov 2007 14:18:37 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

>>> "JED" == Joel E Denny <address@hidden> writes:

 > On Sun, 4 Nov 2007, Akim Demaille wrote:
 >> I suppose we should produce some yacc.1, but should it be:
 >> 
 >> - a stub that says that this is bison -y, read bison(1)
 >> 
 >> - be a copy of bison.1 with the precision that this is
 >> bison -y.
 >> 
 >> - be a copy of bison.1 (with s/bison/yacc/, which is, btw,
 >> not done in yacc --help).
 >> 
 >> I think 1 or 2 are ok.

 > I'd prefer 1, but I'm fine with 2 also.

I installed the following.  Paul is definitely the author of (this) yacc :)

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * 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.

Index: configure.ac
===================================================================
RCS file: /cvsroot/bison/bison/configure.ac,v
retrieving revision 1.82
diff -u -u -r1.82 configure.ac
--- configure.ac 4 Nov 2007 21:13:21 -0000 1.82
+++ configure.ac 14 Nov 2007 13:16:30 -0000
@@ -20,6 +20,10 @@
 AC_PREREQ(2.61)
 
 AC_INIT([GNU Bison], [2.3a+], address@hidden)
+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 @@
 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 @@
                 etc/Makefile
                 examples/Makefile
                    examples/calc++/Makefile
-                lib/Makefile src/Makefile doc/Makefile])
+                lib/Makefile src/Makefile
+                doc/Makefile
+                  doc/yacc.1])
 AC_OUTPUT
Index: doc/Makefile.am
===================================================================
RCS file: /cvsroot/bison/bison/doc/Makefile.am,v
retrieving revision 1.18
diff -u -u -r1.18 Makefile.am
--- doc/Makefile.am 5 Nov 2007 16:10:09 -0000 1.18
+++ doc/Makefile.am 14 Nov 2007 13:16:30 -0000
@@ -66,7 +66,6 @@
 remove_time_stamp = \
   sed 's/^\(\.TH[^"]*"[^"]*"[^"]*\)"[^"]*"/\1/'
 
-
 MOSTLYCLEANFILES = $(srcdir)/*.t
 
 SUFFIXES = .x .1
@@ -97,6 +96,7 @@
        fi
        rm -f address@hidden
 
+nodist_man_MANS = yacc.1
 
 ## -------------- ##
 ## Doxygenation.  ##
Index: doc/yacc.1.in
===================================================================
RCS file: doc/yacc.1.in
diff -N doc/yacc.1.in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ doc/yacc.1.in 14 Nov 2007 13:16:30 -0000
@@ -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.
Index: src/getargs.c
===================================================================
RCS file: /cvsroot/bison/bison/src/getargs.c,v
retrieving revision 1.101
diff -u -u -r1.101 getargs.c
--- src/getargs.c 10 Nov 2007 01:36:54 -0000 1.101
+++ src/getargs.c 14 Nov 2007 13:16:30 -0000
@@ -334,7 +334,8 @@
   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\




reply via email to

[Prev in Thread] Current Thread [Next in Thread]