# How can I make a PDF of the source of pdftex?

I got the files tex.web and pdftex.web from the texlive svn repo. I ran

weave tex.web
pdftex tex.tex


which produced a file tex.pdf with a nicely typeset, cross-referenced listing of the WEB source of TeX.

However, if I do the same process pdftex.web, the resulting file pdftex.pdf only contains the pages corresponding to the index.

Is there some other combination of commands I need to run, or do I need to edit part of pdftex.web? I tried weaving in the supplied .ch files, but it didn't seem to make a difference.

-
I was looking for pdftex.web, and it turns out it can be browsed online directly through the texlive SVN at this link: tug.org/svn/texlive/trunk/Build/source/texk/web2c/pdftexdir/… –  sdaau Feb 19 at 6:40

Simply change the line

\let\maybe=\iffalse % print only changed modules


to

\let\maybe=\iftrue


in pdftex.web.

-
I forgot to add that you may also want to change \input webmac to \input pdfwebmac at the top of the weaved pdftex.tex to enable hyperlinks, which makes for more pleasant reading. –  Ulrik Mar 5 '11 at 22:01