This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [rfa/5] add PDF target to doc directory
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: Re: [rfa/5] add PDF target to doc directory
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 29 May 2000 14:12:35 +1000
- Organization: Cygnus Solutions
- References: <392F87DB.5E05556B@cygnus.com> <39306263.C6C5480D@cygnus.com>
Andrew Cagney wrote:
> Hmm,
>
> Attatched is a revision that uses PDFTEX. Poking around some more
> turned up PDFTEX and its output is about half the size of ps2pdf!
> Now if only there was a PDF tool that added links (like html/info) and
> put the chapter in the correct place.
>
> Andrew
Attatched is the third attempt. This time it:
o imports texinfo.tex from
makeinfo 4.0
o duplicates the @chapter
o uses pdftex
Ok? I left out the diff to texinfo.tex - it is huge. I guess the
question is, is this (specifically the texinfo.tex update) ok with the
doco maintainers as a change to the 5.0 branch?
Andrew
Index: ChangeLog
Mon May 29 13:50:03 2000 Andrew Cagney <cagney@b1.cygnus.com>
* texinfo/texinfo.tex: Update. Version from makeinfo 4.0.
ndex: gdb/doc/ChangeLog
Fri May 26 15:55:33 2000 Andrew Cagney <cagney@b1.cygnus.com>
* Makefile.in (pdf, gdbint.pdf, gdb.pdf, stabs.pdf): New targets.
Generate using pdftex.
(PDFTEX): Define.
(STAGESTUFF, maintainer-clean realclean): Add *.pdf.
(gdb.texinfo, gdbint.texinfo, stabs.texinfo): When TeX insert the
@contents at the start.
Index: gdb/doc/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/doc/Makefile.in,v
retrieving revision 1.4.2.4
diff -p -r1.4.2.4 Makefile.in
*** Makefile.in 2000/05/24 02:06:34 1.4.2.4
--- Makefile.in 2000/05/29 03:53:10
*************** TEXINDEX = texindex
*** 92,97 ****
--- 92,100 ----
# Program to generate Postscript files from DVI files.
DVIPS = dvips
+ # Program to generate PDF files from tex files.
+ PDFTEX = pdftex
+
# Main GDB manual's source files
SFILES_INCLUDED = gdb-cfg.texi $(srcdir)/annotate.texi
*************** info: gdb.info gdbint.info stabs.info
*** 109,115 ****
dvi: gdb.dvi gdbint.dvi stabs.dvi refcard.dvi
ps: gdb.ps gdbint.ps stabs.ps refcard.ps
html: gdb_toc.html gdbint_toc.html stabs_toc.html
! all-doc: info dvi ps
diststuff: info
install-info: info
--- 112,119 ----
dvi: gdb.dvi gdbint.dvi stabs.dvi refcard.dvi
ps: gdb.ps gdbint.ps stabs.ps refcard.ps
html: gdb_toc.html gdbint_toc.html stabs_toc.html
! pdf: gdb.pdf gdbint.pdf stabs.pdf
! all-doc: info dvi ps # pdf
diststuff: info
install-info: info
*************** install-html: html
*** 130,136 ****
$(INSTALL_DATA) $$i $(htmldir)/$$i ; \
done
! STAGESTUFF = *.info* gdb-all.texi GDBvn.texi *.ps *.dvi
# Copy the object files from a particular stage into a subdirectory.
stage1: force
--- 134,140 ----
$(INSTALL_DATA) $$i $(htmldir)/$$i ; \
done
! STAGESTUFF = *.info* gdb-all.texi GDBvn.texi *.ps *.dvi *.pdf
# Copy the object files from a particular stage into a subdirectory.
stage1: force
*************** distclean: clean
*** 181,187 ****
# "clean" or "distclean". Use maintainer-clean to remove them.
maintainer-clean realclean: distclean
! rm -f GDBvn.texi *.info* *.dvi *.ps *.html
# GDB QUICK REFERENCE (dvi output)
refcard.dvi : refcard.tex $(REFEDITS)
--- 185,191 ----
# "clean" or "distclean". Use maintainer-clean to remove them.
maintainer-clean realclean: distclean
! rm -f GDBvn.texi *.info* *.dvi *.ps *.html *.pdf
# GDB QUICK REFERENCE (dvi output)
refcard.dvi : refcard.tex $(REFEDITS)
*************** gdb.dvi: ${SFILES_DOC}
*** 243,248 ****
--- 247,264 ----
gdb.ps: gdb.dvi
$(DVIPS) -o $@ $?
+ gdb.pdf: ${SFILES_DOC}
+ if [ ! -f ./GDBvn.texi ]; then \
+ (test "$$LN_S" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \
+ ln $(srcdir)/GDBvn.texi . || \
+ cp $(srcdir)/GDBvn.texi . ; else true; fi
+ $(SET_TEXINPUTS) $(PDFTEX) gdb.texinfo
+ $(SET_TEXINPUTS) $(PDFTEX) gdb.texinfo
+ $(TEXINDEX) gdb.??
+ $(SET_TEXINPUTS) $(PDFTEX) gdb.texinfo
+ rm -f gdb.aux gdb.cp* gdb.fn* gdb.ky* gdb.log gdb.pg* gdb.toc \
+ gdb.tp* gdb.vr*
+
# GDB MANUAL: info file
# We're using texinfo 3.12; older makeinfo's may not be able to
# cope with all the markup.
*************** gdbint.dvi : gdbint.texinfo
*** 370,375 ****
--- 386,398 ----
gdbint.ps : gdbint.dvi
$(DVIPS) -o $@ $?
+ gdbint.pdf: gdbint.dvi
+ $(SET_TEXINPUTS) $(PDFTEX) gdbint.texinfo
+ $(TEXINDEX) gdbint.??
+ $(SET_TEXINPUTS) $(PDFTEX) gdbint.texinfo
+ rm -f gdbint.aux gdbint.cp* gdbint.fn* gdbint.ky* \
+ gdbint.log gdbint.pg* gdbint.toc gdbint.tp* gdbint.vr*
+
# GDB INTERNALS MANUAL: info file
gdbint.info: gdbint.texinfo
*************** stabs.dvi : stabs.texinfo
*** 398,403 ****
--- 421,433 ----
stabs.ps: stabs.dvi
$(DVIPS) -o $@ $?
+
+ stabs.pdf: stabs.dvi
+ $(SET_TEXINPUTS) $(PDFTEX) stabs.texinfo
+ $(TEXINDEX) stabs.??
+ $(SET_TEXINPUTS) $(PDFTEX) stabs.texinfo
+ rm -f stabs.aux stabs.cp* stabs.fn* stabs.ky* \
+ stabs.log stabs.pg* stabs.toc stabs.tp* stabs.vr*
force:
Index: gdb/doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.13.2.9
diff -p -r1.13.2.9 gdb.texinfo
*** gdb.texinfo 2000/05/24 16:17:06 1.13.2.9
--- gdb.texinfo 2000/05/29 03:53:58
*************** Copyright (C) 1988-2000 Free Software Fo
*** 206,211 ****
--- 206,216 ----
@end ifhtml
+ @c TeX can handle the contents at the start but makeinfo 3.12 can not
+ @iftex
+ @contents
+ @end iftex
+
@node Summary
@unnumbered Summary of @value{GDBN}
*************** needed for special purposes only.
*** 12863,12867 ****
--- 12868,12879 ----
% Blame: doc@cygnus.com, 1991.
@end tex
+ @c TeX can handle the contents at the start but makeinfo 3.12 can not
+ @ifinfo
+ @contents
+ @end ifinfo
+ @ifhtml
@contents
+ @end ifhtml
+
@bye
Index: gdb/doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.5.2.1
diff -p -r1.5.2.1 gdbint.texinfo
*** gdbint.texinfo 2000/04/12 05:16:56 1.5.2.1
--- gdbint.texinfo 2000/05/29 03:54:10
*************** are preserved on all copies.
*** 63,68 ****
--- 63,73 ----
@end titlepage
+ @c TeX can handle the contents at the start but makeinfo 3.12 can not
+ @iftex
+ @contents
+ @end iftex
+
@node Top
@c Perhaps this should be the title of the document (but only for info,
@c not for TeX). Existing GNU manuals seem inconsistent on this point.
*************** pyr-xdep.c
*** 3171,3177 ****
exec.c
@end table
-
@contents
@bye
--- 3176,3188 ----
exec.c
@end table
+ @c TeX can handle the contents at the start but makeinfo 3.12 can not
+ @ifinfo
@contents
+ @end ifinfo
+ @ifhtml
+ @contents
+ @end ifhtml
+
@bye
Index: gdb/doc/stabs.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/stabs.texinfo,v
retrieving revision 1.1.1.3
diff -p -r1.1.1.3 stabs.texinfo
*** stabs.texinfo 1999/06/28 16:02:18 1.1.1.3
--- stabs.texinfo 2000/05/29 03:54:25
*************** This document describes the stabs debugg
*** 86,91 ****
--- 86,95 ----
@end menu
@end ifinfo
+ @c TeX can handle the contents at the start but makeinfo 3.12 can not
+ @iftex
+ @contents
+ @end iftex
@node Overview
@chapter Overview of Stabs
*************** However, no one has yet designed or impl
*** 4015,4019 ****
--- 4019,4030 ----
@printindex fn
+ @c TeX can handle the contents at the start but makeinfo 3.12 can not
+ @ifinfo
@contents
+ @end ifinfo
+ @ifhtml
+ @contents
+ @end ifhtml
+
@bye