diff options
author | Tim Kientzle <kientzle@gmail.com> | 2009-03-22 13:02:56 -0400 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2009-03-22 13:02:56 -0400 |
commit | 71e7851216b3ca3a01eeb0da271575302f3129e8 (patch) | |
tree | d4f53baab2c26445152798b65aa4f51e0c85bd20 /doc/update.sh | |
parent | 63985961e681fec264a8d3c12ed736ad7ca3eaed (diff) | |
download | libarchive-71e7851216b3ca3a01eeb0da271575302f3129e8.tar.gz |
Issue 16: Generate PDF documentation as well as text and man formats.
SVN-Revision: 834
Diffstat (limited to 'doc/update.sh')
-rwxr-xr-x | doc/update.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/update.sh b/doc/update.sh index 644b90a9..385173bb 100755 --- a/doc/update.sh +++ b/doc/update.sh @@ -41,7 +41,26 @@ for d in libarchive tar cpio; do done cd .. +# Rebuild Makefile in 'pdf' directory +cd pdf +echo > Makefile +echo "default: all" >>Makefile +echo >>Makefile +all="all:" +for d in libarchive tar cpio; do + for f in ../../$d/*.[135]; do + echo >> Makefile + echo `basename $f`.pdf: $f >> Makefile + echo " groff -mdoc -T ps $f | ps2pdf - - > `basename $f`.pdf" >> Makefile + all="$all `basename $f`.pdf" + done +done +echo $all >>Makefile +cd .. + # Convert all of the manpages to -man format. (cd man && make) # Format all of the manpages to text (cd text && make) +# Format all of the manpages in PDF directory. +(cd pdf && make) |