On 23-Mar-2003/06:13 -0600, "Ryan K. McKee" <[EMAIL PROTECTED]> wrote:
>Does anyone know where I might be able to find a Linux MAN Page
>collection in PDF format? One might ask, "why in PDF?" Well, I'll tell
>you why, for a number of reasons.
>
[various reasons snipped]
>
>Anyhow, if someone comes across a compilation of the Linux MAN Pages in
>PDF format or if they are willing to compile such a collection on their
>own, then I would appreciate it if that person would notify me via
>e-mail: [EMAIL PROTECTED] or even POST a response in this forum/newsgroup.
#!/bin/sh
#
# Build a PDF version of all man pages on system.
#
# Start in my Home directory, and create a directory
# for the PDF man pages.
cd $HOME
mkdir man
cd man
# Walk through the manpage sections, creating subdirectories
# for each on ein my Home directory.
for section in 1 2 3 4 5 6 7 8 9; do
mkdir $HOME/man/man$section
cd /usr/share/man/man$section
# Get a list of files and convert each one to PDF.
for manfile in (ls -1); do
basefile=(basename $manfile .gz)
man -t ./$manfile | ps2pdf > $HOME/man/man$section/$basefile.pdf
done
done
# End of script.
echo "Done."
Do the same thing for /usr/local/man.
Tony
--
Anthony E. Greene <mailto:[EMAIL PROTECTED]>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list