]> git.saurik.com Git - bison.git/commitdiff
* doc/yacc.1.in: New.
authorAkim Demaille <akim@epita.fr>
Wed, 14 Nov 2007 13:18:44 +0000 (13:18 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 14 Nov 2007 13:18:44 +0000 (13:18 +0000)
* 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
configure.ac
doc/Makefile.am
doc/yacc.1.in [new file with mode: 0644]
src/getargs.c

index 850755238a088517d3b10c72ede7df517291b196..84c0195e12dbbde1ff3dbd35dd5a37e48fc218e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-11-14  Akim Demaille  <akim@epita.fr>
+
+       * 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  <jdenny@ces.clemson.edu>
 
        * src/gram.c: Remove comments that duplicate comments in gram.h.
index a98fce2e93c55a0a11e03c5ba7eb1f1ddf1001a7..ecdb662e605fd48715da6d64d1c7bfda2288b7bd 100644 (file)
 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
index a97af2bffcdf99628b469b97a7b34d33c85673c7..f04e47c52c84c6834d7d37955f51c9f02433bd18 100644 (file)
@@ -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 (file)
index 0000000..1d07483
--- /dev/null
@@ -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 48103c6830e3f2a5efa46cddcc33ae0441fa8cad..3e143aa387aecdd26a31273f50e0e2de0e8182ed 100644 (file)
@@ -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\