]> gcc.gnu.org Git - gcc.git/commitdiff
texi2pod.pl: Handle @ifnottex, @iftex and @display.
authorJoseph Myers <jsm28@cam.ac.uk>
Wed, 14 Nov 2001 00:47:47 +0000 (00:47 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 14 Nov 2001 00:47:47 +0000 (00:47 +0000)
contrib:
* texi2pod.pl: Handle @ifnottex, @iftex and @display.  Handle @var
in verbatim blocks specially.  Handle @unnumbered, @unnumberedsec
and @center.  Allow [a-z] after @enumerate.  Handle 0 and numbers
greater than 9 in enumerations.

gcc:
* Makefile.in (POD2MAN): Don't include --section=1.
(manext): Rename to man1ext.  All users changed.
(man7ext): New.
(man7dir): New.
(generated-manpages): Also depend on $(docdir)/gfdl.7,
$(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
--section=1 in calls to $(POD2MAN).
($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
(maintainer-clean, install, uninstall): Handle the new man pages.
($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
(installdirs): Create man7dir.
* doc/cpp.texi: Include GFDL in this manual.  In the man page,
refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
the SEE ALSO man page section.
* doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
and fsf-funding(7) in the SEE ALSO man page section.
* doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
* doc/include/fdl.texi, doc/include/funding.texi,
doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
* doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.

gcc/cp:
* Make-lang.in: Change all uses of $(manext) to $(man1ext).

gcc/f:
* Make-lang.in: Change all uses of $(manext) to $(man1ext).

From-SVN: r46998

15 files changed:
contrib/ChangeLog
contrib/texi2pod.pl
gcc/ChangeLog
gcc/Makefile.in
gcc/cp/ChangeLog
gcc/cp/Make-lang.in
gcc/doc/.cvsignore
gcc/doc/cpp.texi
gcc/doc/gcov.texi
gcc/doc/include/fdl.texi
gcc/doc/include/funding.texi
gcc/doc/include/gpl.texi
gcc/doc/invoke.texi
gcc/f/ChangeLog
gcc/f/Make-lang.in

index 802fb594670f981f31aa171c3f1d17a492187f7e..c61d1e371fd6ca4c880c2c87136d60ddc3db4590 100644 (file)
@@ -1,3 +1,10 @@
+2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * texi2pod.pl: Handle @ifnottex, @iftex and @display.  Handle @var
+       in verbatim blocks specially.  Handle @unnumbered, @unnumberedsec
+       and @center.  Allow [a-z] after @enumerate.  Handle 0 and numbers
+       greater than 9 in enumerations.
+
 2001-11-07  Laurent Guerby <guerby@acm.org>
 
        * gcc_update (files_and_dependencies): Add Ada dependencies.
index 7a930eed595a959f74d336d8021869b92b272d7e..8c8b4f9859395cfc55802b0eba168abfbf1fb90b 100755 (executable)
@@ -71,6 +71,7 @@ while(<STDIN>)
         |(?:end\s+)?group      # @group .. @end group: ditto
         |page                  # @page: ditto
         |node                  # @node: useful only in .info file
+        |(?:end\s+)?ifnottex   # @ifnottex .. @end ifnottex: use contents
        )\b/x and next;
     
     chomp;
@@ -102,17 +103,17 @@ while(<STDIN>)
        # Ignore @end foo, where foo is not an operation which may
        # cause us to skip, if we are presently skipping.
        my $ended = $1;
-       next if $skipping && $ended !~ /^(?:ifset|ifclear|ignore|menu)$/;
+       next if $skipping && $ended !~ /^(?:ifset|ifclear|ignore|menu|iftex)$/;
 
        die "\@end $ended without \@$ended at line $.\n" unless defined $endw;
        die "\@$endw ended by \@end $ended at line $.\n" unless $ended eq $endw;
 
        $endw = pop @endwstack;
 
-       if ($ended =~ /^(?:ifset|ifclear|ignore|menu)$/) {
+       if ($ended =~ /^(?:ifset|ifclear|ignore|menu|iftex)$/) {
            $skipping = pop @skstack;
            next;
-       } elsif ($ended =~ /^(?:example|smallexample)$/) {
+       } elsif ($ended =~ /^(?:example|smallexample|display)$/) {
            $shift = "";
            $_ = "";    # need a paragraph break
        } elsif ($ended =~ /^(?:itemize|enumerate|table)$/) {
@@ -142,7 +143,7 @@ while(<STDIN>)
        next;
     };
 
-    /^\@(ignore|menu)\b/ and do {
+    /^\@(ignore|menu|iftex)\b/ and do {
        push @endwstack, $endw;
        push @skstack, $skipping;
        $endw = $1;
@@ -171,6 +172,12 @@ while(<STDIN>)
     s/\@\{/&lbrace;/g;
     s/\@\}/&rbrace;/g;
     s/\@\@/&at;/g;
+
+    # Inside a verbatim block, handle @var specially.
+    if ($shift ne "") {
+       s/\@var\{([^\}]*)\}/<$1>/g;
+    }
+
     # POD doesn't interpret E<> inside a verbatim block.
     if ($shift eq "") {
        s/</&lt;/g;
@@ -184,7 +191,7 @@ while(<STDIN>)
     /^\@set\s+([a-zA-Z0-9_-]+)\s*(.*)$/ and $defs{$1} = $2, next;
     /^\@clear\s+([a-zA-Z0-9_-]+)/ and delete $defs{$1}, next;
 
-    /^\@section\s+(.+)$/ and $_ = "\n=head2 $1\n";
+    /^\@(?:section|unnumbered|unnumberedsec|center)\s+(.+)$/ and $_ = "\n=head2 $1\n";
     /^\@subsection\s+(.+)$/ and $_ = "\n=head3 $1\n";
 
     # Block command handlers:
@@ -196,7 +203,7 @@ while(<STDIN>)
        $endw = "itemize";
     };
 
-    /^\@enumerate(?:\s+([A-Z0-9]+))?/ and do {
+    /^\@enumerate(?:\s+([a-zA-Z0-9]+))?/ and do {
        push @endwstack, $endw;
        push @icstack, $ic;
        if (defined $1) {
@@ -220,7 +227,7 @@ while(<STDIN>)
        $endw = "table";
     };
 
-    /^\@((?:small)?example)/ and do {
+    /^\@((?:small)?example|display)/ and do {
        push @endwstack, $endw;
        $endw = $1;
        $shift = "\t";
@@ -233,7 +240,8 @@ while(<STDIN>)
            $_ = "\n=item $ic\&LT;$1\&GT;\n";
        } else {
            $_ = "\n=item $ic\n";
-           $ic =~ y/A-Ya-y1-8/B-Zb-z2-9/;
+           $ic =~ y/A-Ya-y/B-Zb-z/;
+           $ic =~ s/(\d+)/$1 + 1/eg;
        }
     };
 
index bac8274d03e8261e732b627a073b6cbf38563f96..b58f92df71874a3cc5178bb618e5d956933169ca 100644 (file)
@@ -1,3 +1,29 @@
+2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * Makefile.in (POD2MAN): Don't include --section=1.
+       (manext): Rename to man1ext.  All users changed.
+       (man7ext): New.
+       (man7dir): New.
+       (generated-manpages): Also depend on $(docdir)/gfdl.7,
+       $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
+       ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
+       --section=1 in calls to $(POD2MAN).
+       ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
+       (maintainer-clean, install, uninstall): Handle the new man pages.
+       ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
+       (installdirs): Create man7dir.
+       * doc/cpp.texi: Include GFDL in this manual.  In the man page,
+       refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
+       texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
+       the SEE ALSO man page section.
+       * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
+       and fsf-funding(7) in the SEE ALSO man page section.
+       * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
+       gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
+       * doc/include/fdl.texi, doc/include/funding.texi,
+       doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
+       * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
+
 2001-11-13  Richard Henderson  <rth@redhat.com>
 
        * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
index 941b28710333d2ec3da75113236720b2231b74ea..57ae5a6c170da2548abcd40c7083dfa7e86a3298 100644 (file)
@@ -125,7 +125,7 @@ MAKEINFO = @MAKEINFO@
 MAKEINFOFLAGS =
 TEXI2DVI = texi2dvi
 TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl
-POD2MAN = pod2man --center="GNU" --release="gcc-$(version)" --section=1
+POD2MAN = pod2man --center="GNU" --release="gcc-$(version)"
 # For GNUmake: let us decide what gets passed to recursive makes.
 MAKEOVERRIDES =
 @SET_MAKE@
@@ -312,7 +312,8 @@ cpp_install_dir = @cpp_install_dir@
 datadir = @datadir@
 localedir = $(datadir)/locale
 # Extension (if any) to put in installed man-page filename.
-manext = .1
+man1ext = .1
+man7ext = .7
 objext = .o
 exeext = @host_exeext@
 build_exeext = @build_exeext@
@@ -320,6 +321,7 @@ build_exeext = @build_exeext@
 # Directory in which to put man pages.
 mandir = @mandir@
 man1dir = $(mandir)/man1
+man7dir = $(mandir)/man7
 # Dir for temp files.
 tmpdir = /tmp
 
@@ -2308,7 +2310,7 @@ docdir = $(srcdir)/doc
 doc: $(BUILD_INFO) $(GENERATED_MANPAGES) gccbug
 info: $(docdir)/cpp.info $(docdir)/gcc.info lang.info $(docdir)/cppinternals.info
 
-$(docdir)/cpp.info: $(docdir)/cpp.texi
+$(docdir)/cpp.info: $(docdir)/cpp.texi $(docdir)/include/fdl.texi
        cd $(srcdir) && $(MAKEINFO) $(MAKEINFOFLAGS) -I doc -I doc/include -o doc/cpp.info doc/cpp.texi
 
 $(docdir)/gcc.info: $(docdir)/gcc.texi $(docdir)/extend.texi \
@@ -2333,7 +2335,7 @@ $(docdir)/cppinternals.info: $(docdir)/cppinternals.texi
 dvi: gcc.dvi cpp.dvi lang.dvi cppinternals.dvi
 
 # This works with GNU Make's default rule.
-cpp.dvi: $(docdir)/cpp.texi
+cpp.dvi: $(docdir)/cpp.texi $(docdir)/include/fdl.texi
        $(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/cpp.texi
 
 gcc.dvi: $(docdir)/gcc.texi $(docdir)/extend.texi $(docdir)/install-old.texi \
@@ -2354,12 +2356,13 @@ gcc.dvi: $(docdir)/gcc.texi $(docdir)/extend.texi $(docdir)/install-old.texi \
 cppinternals.dvi: $(docdir)/cppinternals.texi
        $(TEXI2DVI) -I $(docdir) -I $(docdir)/include $(docdir)/cppinternals.texi
 
-generated-manpages: $(docdir)/gcov.1 $(docdir)/cpp.1 $(docdir)/gcc.1
+generated-manpages: $(docdir)/gcov.1 $(docdir)/cpp.1 $(docdir)/gcc.1 \
+        $(docdir)/gfdl.7 $(docdir)/gpl.7 $(docdir)/fsf-funding.7
 
 $(docdir)/gcov.1: $(docdir)/gcov.texi
        $(STAMP) $(docdir)/gcov.1
        -$(TEXI2POD) < $(docdir)/gcov.texi > gcov.pod
-       -($(POD2MAN) gcov.pod > $(docdir)/gcov.1.T$$$$ && \
+       -($(POD2MAN) --section=1 gcov.pod > $(docdir)/gcov.1.T$$$$ && \
                mv -f $(docdir)/gcov.1.T$$$$ $(docdir)/gcov.1) || \
                (rm -f $(docdir)/gcov.1.T$$$$ && exit 1)
        -rm -f gcov.pod
@@ -2367,7 +2370,7 @@ $(docdir)/gcov.1: $(docdir)/gcov.texi
 $(docdir)/cpp.1: $(docdir)/cpp.texi
        $(STAMP) $(docdir)/cpp.1
        -$(TEXI2POD) < $(docdir)/cpp.texi > cpp.pod
-       -($(POD2MAN) cpp.pod > $(docdir)/cpp.1.T$$$$ && \
+       -($(POD2MAN) --section=1 cpp.pod > $(docdir)/cpp.1.T$$$$ && \
                mv -f $(docdir)/cpp.1.T$$$$ $(docdir)/cpp.1) || \
                (rm -f $(docdir)/cpp.1.T$$$$ && exit 1)
        -rm -f cpp.pod
@@ -2375,11 +2378,36 @@ $(docdir)/cpp.1: $(docdir)/cpp.texi
 $(docdir)/gcc.1: $(docdir)/invoke.texi
        $(STAMP) $(docdir)/gcc.1
        -$(TEXI2POD) < $(docdir)/invoke.texi > gcc.pod
-       -($(POD2MAN) gcc.pod > $(docdir)/gcc.1.T$$$$ && \
+       -($(POD2MAN) --section=1 gcc.pod > $(docdir)/gcc.1.T$$$$ && \
                mv -f $(docdir)/gcc.1.T$$$$ $(docdir)/gcc.1) || \
                (rm -f $(docdir)/gcc.1.T$$$$ && exit 1)
        -rm -f gcc.pod
 
+$(docdir)/gfdl.7: $(docdir)/include/fdl.texi
+       $(STAMP) $(docdir)/gfdl.7
+       -$(TEXI2POD) < $(docdir)/include/fdl.texi > gfdl.pod
+       -($(POD2MAN) --section=7 gfdl.pod > $(docdir)/gfdl.7.T$$$$ && \
+               mv -f $(docdir)/gfdl.7.T$$$$ $(docdir)/gfdl.7) || \
+               (rm -f $(docdir)/gfdl.7.T$$$$ && exit 1)
+       -rm -f gfdl.pod
+
+$(docdir)/gpl.7: $(docdir)/include/gpl.texi
+       $(STAMP) $(docdir)/gpl.7
+       -$(TEXI2POD) < $(docdir)/include/gpl.texi > gpl.pod
+       -($(POD2MAN) --section=7 gpl.pod > $(docdir)/gpl.7.T$$$$ && \
+               mv -f $(docdir)/gpl.7.T$$$$ $(docdir)/gpl.7) || \
+               (rm -f $(docdir)/gpl.7.T$$$$ && exit 1)
+       -rm -f gpl.pod
+
+$(docdir)/fsf-funding.7: $(docdir)/include/funding.texi
+       $(STAMP) $(docdir)/fsf-funding.7
+       -$(TEXI2POD) < $(docdir)/include/funding.texi > fsf-funding.pod
+       -($(POD2MAN) --section=7 fsf-funding.pod \
+               > $(docdir)/fsf-funding.7.T$$$$ && \
+           mv -f $(docdir)/fsf-funding.7.T$$$$ $(docdir)/fsf-funding.7) || \
+           (rm -f $(docdir)/fsf-funding.7.T$$$$ && exit 1)
+       -rm -f fsf-funding.pod
+
 #\f
 # Deletion of files made during compilation.
 # There are four levels of this:
@@ -2509,6 +2537,7 @@ maintainer-clean:
        -rm -f $(docdir)/cpp.info* $(docdir)/gcc.info*
        -rm -f $(docdir)/cppinternals.info*
        -rm -f $(docdir)/gcov.1 $(docdir)/cpp.1 $(docdir)/gcc.1
+       -rm -f $(docdir)/fsf-funding.7 $(docdir)/gfdl.7 $(docdir)/gpl.7
 #\f
 # Entry points `install' and `uninstall'.
 # Also use `install-collect2' to install collect2 when the config files don't.
@@ -2596,6 +2625,7 @@ installdirs:
        -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
        if [ -d $$parent ] ; then true ; else mkdir $$parent ; chmod a+rx $$parent ; fi
        -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; chmod a+rx $(man1dir) ; fi
+       -if [ -d $(man7dir) ] ; then true ; else mkdir $(man7dir) ; chmod a+rx $(man7dir) ; fi
 
 # Install the compiler executables built during cross compilation.
 install-common: native $(EXTRA_PARTS) lang.install-common
@@ -2701,20 +2731,29 @@ install-info: doc installdirs lang.install-info
 # Install the man pages.
 install-man: installdirs $(GENERATED_MANPAGES) lang.install-man
        -if [ -f gcc-cross$(exeext) ] ; then \
-         rm -f $(man1dir)/$(GCC_CROSS_NAME)$(manext); \
-         $(INSTALL_DATA) $(docdir)/gcc.1 $(man1dir)/$(GCC_CROSS_NAME)$(manext); \
-         chmod a-x $(man1dir)/$(GCC_CROSS_NAME)$(manext); \
+         rm -f $(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \
+         $(INSTALL_DATA) $(docdir)/gcc.1 $(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \
+         chmod a-x $(man1dir)/$(GCC_CROSS_NAME)$(man1ext); \
        else \
-         rm -f $(man1dir)/$(GCC_INSTALL_NAME)$(manext); \
-         $(INSTALL_DATA) $(docdir)/gcc.1 $(man1dir)/$(GCC_INSTALL_NAME)$(manext); \
-         chmod a-x $(man1dir)/$(GCC_INSTALL_NAME)$(manext); \
+         rm -f $(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \
+         $(INSTALL_DATA) $(docdir)/gcc.1 $(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \
+         chmod a-x $(man1dir)/$(GCC_INSTALL_NAME)$(man1ext); \
        fi
-       -rm -f $(man1dir)/cpp$(manext)
-       -$(INSTALL_DATA) $(docdir)/cpp.1 $(man1dir)/cpp$(manext)
-       -chmod a-x $(man1dir)/cpp$(manext)
-       -rm -f $(man1dir)/gcov$(manext)
-       -$(INSTALL_DATA) $(docdir)/gcov.1 $(man1dir)/gcov$(manext)
-       -chmod a-x $(man1dir)/gcov$(manext)
+       -rm -f $(man1dir)/cpp$(man1ext)
+       -$(INSTALL_DATA) $(docdir)/cpp.1 $(man1dir)/cpp$(man1ext)
+       -chmod a-x $(man1dir)/cpp$(man1ext)
+       -rm -f $(man1dir)/gcov$(man1ext)
+       -$(INSTALL_DATA) $(docdir)/gcov.1 $(man1dir)/gcov$(man1ext)
+       -chmod a-x $(man1dir)/gcov$(man1ext)
+       -rm -f $(man7dir)/fsf-funding$(man7ext)
+       -$(INSTALL_DATA) $(docdir)/fsf-funding.7 $(man7dir)/fsf-funding$(man7ext)
+       -chmod a-x $(man7dir)/fsf-funding$(man7ext)
+       -rm -f $(man7dir)/gfdl$(man7ext)
+       -$(INSTALL_DATA) $(docdir)/gfdl.7 $(man7dir)/gfdl$(man7ext)
+       -chmod a-x $(man7dir)/gfdl$(man7ext)
+       -rm -f $(man7dir)/gpl$(man7ext)
+       -$(INSTALL_DATA) $(docdir)/gpl.7 $(man7dir)/gpl$(man7ext)
+       -chmod a-x $(man7dir)/gpl$(man7ext)
 
 # Install the library.
 install-libgcc: libgcc.mk libgcc.a installdirs
@@ -2825,11 +2864,11 @@ uninstall: intl.uninstall lang.uninstall $(UNINSTALL_CPP)
        -rm -rf $(bindir)/$(UNPROTOIZE_INSTALL_NAME)$(exeext)
        -rm -rf $(bindir)/$(UNPROTOIZE_CROSS_NAME)$(exeext)
        -rm -rf $(bindir)/$(GCOV_INSTALL_NAME)$(exeext)
-       -rm -rf $(man1dir)/$(GCC_INSTALL_NAME)$(manext)
-       -rm -rf $(man1dir)/$(GCC_CROSS_NAME)$(manext)
-       -rm -rf $(man1dir)/cpp$(manext)
-       -rm -rf $(man1dir)/protoize$(manext)
-       -rm -rf $(man1dir)/unprotoize$(manext)
+       -rm -rf $(man1dir)/$(GCC_INSTALL_NAME)$(man1ext)
+       -rm -rf $(man1dir)/$(GCC_CROSS_NAME)$(man1ext)
+       -rm -rf $(man1dir)/cpp$(man1ext)
+       -rm -rf $(man1dir)/protoize$(man1ext)
+       -rm -rf $(man1dir)/unprotoize$(man1ext)
        -rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
        -rm -f $(infodir)/cppinternals.info*
 #\f
index 688a55be19fb8356ed5a86d874728aff617762a9..0454d024b09ddbacac6ce4b43b390a0604247d50 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * Make-lang.in: Change all uses of $(manext) to $(man1ext).
+
 2001-11-13  Nathan Sidwell  <nathan@codesourcery.com>
 
        PR g++/4206
index 3a0a92485c0fe35a3a9ef10fe1c337444e897856..6bf274c1225dc0fc1389c9bc160f2f9d2019a70f 100644 (file)
@@ -187,13 +187,13 @@ c++.install-info:
 c++.install-man: installdirs $(srcdir)/cp/g++.1
        -if [ -f cc1plus$(exeext) ] ; then \
          if [ -f g++-cross$(exeext) ] ; then \
-           rm -f $(man1dir)/$(GXX_CROSS_NAME)$(manext); \
-           $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(man1dir)/$(GXX_CROSS_NAME)$(manext); \
-           chmod a-x $(man1dir)/$(GXX_CROSS_NAME)$(manext); \
+           rm -f $(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
+           $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
+           chmod a-x $(man1dir)/$(GXX_CROSS_NAME)$(man1ext); \
          else \
-           rm -f $(man1dir)/$(GXX_INSTALL_NAME)$(manext); \
-           $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(man1dir)/$(GXX_INSTALL_NAME)$(manext); \
-           chmod a-x $(man1dir)/$(GXX_INSTALL_NAME)$(manext); \
+           rm -f $(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
+           $(INSTALL_DATA) $(srcdir)/cp/g++.1 $(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
+           chmod a-x $(man1dir)/$(GXX_INSTALL_NAME)$(man1ext); \
          fi; \
        else true; fi
 
@@ -204,8 +204,8 @@ c++.uninstall:
        -rm -rf $(bindir)/$(GXX_CROSS_NAME)$(exeext)
        -rm -rf $(bindir)/$(DEMANGLER_INSTALL_NAME)$(exeext)
        -rm -rf $(bindir)/$(DEMANGLER_CROSS_NAME)$(exeext)
-       -rm -rf $(man1dir)/$(GXX_INSTALL_NAME)$(manext)
-       -rm -rf $(man1dir)/$(GXX_CROSS_NAME)$(manext)
+       -rm -rf $(man1dir)/$(GXX_INSTALL_NAME)$(man1ext)
+       -rm -rf $(man1dir)/$(GXX_CROSS_NAME)$(man1ext)
 #\f
 # Clean hooks:
 # A lot of the ancillary files are deleted by the main makefile.
index e31607524e00ec4f8333255e8d567f02d317ea9a..48cfd3dfadedaf9ff91401b27add7671c90b7a31 100644 (file)
@@ -4,3 +4,6 @@ cppinternals.info*
 gcc.1
 cpp.1
 gcov.1
+gfdl.7
+gpl.7
+fsf-funding.7
index ed167e49bbcf714d14c6c0e1a397a14c811a153d..158474ef113fd3cc1996e3ce5ca90e272d22294e 100644 (file)
@@ -15,22 +15,18 @@ Free Software Foundation, Inc.
 Permission is granted to copy, distribute and/or modify this document
 under the terms of the GNU Free Documentation License, Version 1.1 or
 any later version published by the Free Software Foundation.  A copy of
-the license is included in the accompanying manual for GCC, in the
-section ``GNU Free Documentation License''.
+the license is included in the
 @c man end
-@end macro
-
-@c The manpage doesn't have Front-Cover and Back-Cover Texts, but the
-@c complete manual does.  -zw
-
+section entitled ``GNU Free Documentation License''.
 @ignore
 @c man begin COPYRIGHT
-This manual contains no Invariant Sections, and has no Front-Cover Texts
-or Back-Cover Texts.
+man page gfdl(7).
 @c man end
 @end ignore
+@end macro
 
 @macro covertexts
+@c man begin COPYRIGHT
 This manual contains no Invariant Sections.  The Front-Cover Texts are
 (a) (see below), and the Back-Cover Texts are (b) (see below).
 
@@ -43,6 +39,7 @@ This manual contains no Invariant Sections.  The Front-Cover Texts are
      You have freedom to copy and modify this GNU Manual, like GNU
      software.  Copies published by the Free Software Foundation raise
      funds for GNU development.
+@c man end
 @end macro
 
 @macro gcctabopt{body}
@@ -92,6 +89,7 @@ useful on its own.
 * Traditional Mode::
 * Implementation Details::
 * Invocation::
+* GNU Free Documentation License::
 * Index of Directives::
 * Concept Index::
 
@@ -3806,6 +3804,7 @@ cpp [@option{-D}@var{macro}[=@var{defn}]@dots{}] [@option{-U}@var{macro}]
 Only the most useful options are listed here; see below for the remainder.
 @c man end
 @c man begin SEEALSO
+gpl(7), gfdl(7), fsf-funding(7),
 gcc(1), as(1), ld(1), and the Info entries for @file{cpp}, @file{gcc}, and
 @file{binutils}.
 @c man end
@@ -4280,6 +4279,8 @@ preprocess as normal.  With two dashes, exit immediately.
 @end table
 @c man end
 
+@include fdl.texi
+
 @page
 @node Index of Directives
 @unnumbered Index of Directives
index c4e6e55eb96d4c2c6502b53143acc179dbda55d4..86b64e0e8e55f34834e880adbc77275982f81bb2 100644 (file)
@@ -6,20 +6,23 @@
 @c man begin COPYRIGHT
 Copyright @copyright{} 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
 
-Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
-Permission is granted to copy and distribute modified versions of this
-manual under the conditions for verbatim copying, provided also that the
-entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
-Permission is granted to copy and distribute translations of this manual
-into another language, under the above conditions for modified versions,
-except that this permission notice may be included in translations
-approved by the Free Software Foundation instead of in the original
-English.
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.1 or
+any later version published by the Free Software Foundation; with the
+Invariant Sections being ``GNU General Public License'' and ``Funding
+Free Software'', the Front-Cover texts being (a) (see below), and with
+the Back-Cover Texts being (b) (see below).  A copy of the license is
+included in the gfdl(7) man page.
+
+(a) The FSF's Front-Cover Text is:
+
+     A GNU Manual
+
+(b) The FSF's Back-Cover Text is:
+
+     You have freedom to copy and modify this GNU Manual, like GNU
+     software.  Copies published by the Free Software Foundation raise
+     funds for GNU development.
 @c man end
 @c Set file name and title for the man page.
 @setfilename gcov
@@ -120,7 +123,7 @@ gcov [@option{-v}|@option{--version}] [@option{-h}|@option{--help}]
      [@option{-o}|@option{--object-directory} @var{directory}] @var{sourcefile}
 @c man end
 @c man begin SEEALSO
-gcc(1) and the Info entry for @file{gcc}.
+gpl(7), gfdl(7), fsf-funding(7), gcc(1) and the Info entry for @file{gcc}.
 @c man end
 @end ignore
 
index db691df61edaadf10a3ab50a9a5ec64dc2f25002..b24818bab896279b86b33b57e28721134ba2e910 100644 (file)
@@ -1,5 +1,20 @@
+@ignore
+@c Set file name and title for man page.
+@setfilename gfdl
+@settitle GNU Free Documentation License
+@c man begin SEEALSO
+gpl(7), fsf-funding(7).
+@c man end
+@c man begin COPYRIGHT
+Copyright @copyright{} 2000 Free Software Foundation, Inc.
+59 Temple Place, Suite 330, Boston, MA  02111-1307, USA
 
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+@c man end
+@end ignore
 @node GNU Free Documentation License
+@c man begin DESCRIPTION
 @unnumbered GNU Free Documentation License
 
 @cindex FDL, GNU Free Documentation License
@@ -401,3 +416,4 @@ to permit their use in free software.
 @c ispell-local-pdict: "ispell-dict"
 @c End:
 
+@c man end
index 99ab36204c9a94f2120d5163cc40ba36e74a32e6..d1583fabc0d8bec19f49bd13e78821cb0bc04527 100644 (file)
@@ -1,4 +1,13 @@
+@ignore
+@c Set file name and title for man page.
+@setfilename fsf-funding
+@settitle Funding Free Software
+@c man begin SEEALSO
+gpl(7), gfdl(7).
+@c man end
+@end ignore
 @node Funding
+@c man begin DESCRIPTION
 @unnumbered Funding Free Software
 
 If you want to have more free software a few years from now, it makes
@@ -40,9 +49,12 @@ major new features or packages contribute the most.
 By establishing the idea that supporting further development is ``the
 proper thing to do'' when distributing free software for a fee, we can
 assure a steady flow of resources into making more free software.
+@c man end
 
 @display
-Copyright (C) 1994 Free Software Foundation, Inc.
+@c man begin COPYRIGHT
+Copyright @copyright{} 1994 Free Software Foundation, Inc.
 Verbatim copying and redistribution of this section is permitted
 without royalty; alteration is not permitted.
+@c man end
 @end display
index 32e74060f2693f8f9bc04934c7e45ab7099e7131..4304b724e0d0a9f865c2b92e912c00579782af71 100644 (file)
@@ -1,4 +1,20 @@
+@ignore
+@c Set file name and title for man page.
+@setfilename gpl
+@settitle GNU General Public License
+@c man begin SEEALSO
+gfdl(7), fsf-funding(7).
+@c man end
+@c man begin COPYRIGHT
+Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
+59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+@c man end
+@end ignore
 @node Copying
+@c man begin DESCRIPTION
 @unnumbered GNU GENERAL PUBLIC LICENSE
 @center Version 2, June 1991
 
@@ -390,3 +406,4 @@ proprietary programs.  If your program is a subroutine library, you may
 consider it more useful to permit linking proprietary applications with the
 library.  If this is what you want to do, use the GNU Library General
 Public License instead of this License.
+@c man end
index fde54653719b86b0be390b9452fb1f55596af502..c8bfd474bf2af201947052ff98fb4fd96085d33f 100644 (file)
@@ -8,20 +8,23 @@
 Copyright @copyright{} 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997,
 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
-Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
-Permission is granted to copy and distribute modified versions of this
-manual under the conditions for verbatim copying, provided also that the
-entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
-Permission is granted to copy and distribute translations of this manual
-into another language, under the above conditions for modified versions,
-except that this permission notice may be included in translations
-approved by the Free Software Foundation instead of in the original
-English.
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.1 or
+any later version published by the Free Software Foundation; with the
+Invariant Sections being ``GNU General Public License'' and ``Funding
+Free Software'', the Front-Cover texts being (a) (see below), and with
+the Back-Cover Texts being (b) (see below).  A copy of the license is
+included in the gfdl(7) man page.
+
+(a) The FSF's Front-Cover Text is:
+
+     A GNU Manual
+
+(b) The FSF's Back-Cover Text is:
+
+     You have freedom to copy and modify this GNU Manual, like GNU
+     software.  Copies published by the Free Software Foundation raise
+     funds for GNU development.
 @c man end
 @c Set file name and title for the man page.
 @setfilename gcc
@@ -39,6 +42,7 @@ Only the most useful options are listed here; see below for the
 remainder.  @samp{g++} accepts mostly the same options as @samp{gcc}.
 @c man end
 @c man begin SEEALSO
+gpl(7), gfdl(7), fsf-funding(7),
 cpp(1), gcov(1), g77(1), as(1), ld(1), gdb(1), adb(1), dbx(1), sdb(1)
 and the Info entries for @file{gcc}, @file{cpp}, @file{g77}, @file{as},
 @file{ld}, @file{binutils} and @file{gdb}.
index 07e2cfd3fb1b1505aa5ca81185772a4c3b12e809..730ce5de99f8a2483063525ccd66e139151609de 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * Make-lang.in: Change all uses of $(manext) to $(man1ext).
+
 2001-11-14  Toon Moene  <toon@moene.indiv.nluug.nl>
 
        * g77.1: Remove from CVS.
index a3596d65a92cdadfdb2750a220b567f70dab6749..404770d480ae76955bb0b82e3367e4e5f46aef3e 100644 (file)
@@ -345,13 +345,13 @@ f77.install-man: $(srcdir)/f/g77.1 installdirs
        esac
        -if [ -f $(libsubdir)/lang-f77.man -a -f f771$(exeext) ] ; then \
          if [ -f g77-cross$(exeext) ] ; then \
-           rm -f $(man1dir)/$(G77_CROSS_NAME)$(manext); \
-           $(INSTALL_DATA) $(srcdir)/f/g77.1 $(man1dir)/$(G77_CROSS_NAME)$(manext); \
-           chmod a-x $(man1dir)/$(G77_CROSS_NAME)$(manext); \
+           rm -f $(man1dir)/$(G77_CROSS_NAME)$(man1ext); \
+           $(INSTALL_DATA) $(srcdir)/f/g77.1 $(man1dir)/$(G77_CROSS_NAME)$(man1ext); \
+           chmod a-x $(man1dir)/$(G77_CROSS_NAME)$(man1ext); \
          else \
-           rm -f $(man1dir)/$(G77_INSTALL_NAME)$(manext); \
-           $(INSTALL_DATA) $(srcdir)/f/g77.1 $(man1dir)/$(G77_INSTALL_NAME)$(manext); \
-           chmod a-x $(man1dir)/$(G77_INSTALL_NAME)$(manext); \
+           rm -f $(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \
+           $(INSTALL_DATA) $(srcdir)/f/g77.1 $(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \
+           chmod a-x $(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \
          fi; \
        else true; fi
        rm -f $(libsubdir)/lang-f77.man
@@ -372,8 +372,8 @@ f77.uninstall: installdirs
        -if [ -f $(libsubdir)/lang-f77.un ]; then \
          rm -rf $(bindir)/$(G77_INSTALL_NAME)$(exeext); \
          rm -rf $(bindir)/$(G77_CROSS_NAME)$(exeext); \
-         rm -rf $(man1dir)/$(G77_INSTALL_NAME)$(manext); \
-         rm -rf $(man1dir)/$(G77_CROSS_NAME)$(manext); \
+         rm -rf $(man1dir)/$(G77_INSTALL_NAME)$(man1ext); \
+         rm -rf $(man1dir)/$(G77_CROSS_NAME)$(man1ext); \
          rm -rf $(infodir)/g77.info*; \
        fi
        rm -f $(libsubdir)/lang-f77.un
This page took 0.093222 seconds and 5 git commands to generate.