]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Issue 16: Generate PDF documentation as well as text and man formats.
authorTim Kientzle <kientzle@gmail.com>
Sun, 22 Mar 2009 17:02:56 +0000 (13:02 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sun, 22 Mar 2009 17:02:56 +0000 (13:02 -0400)
SVN-Revision: 834

doc/pdf/.ignore_me [new file with mode: 0644]
doc/update.sh

diff --git a/doc/pdf/.ignore_me b/doc/pdf/.ignore_me
new file mode 100644 (file)
index 0000000..d285484
--- /dev/null
@@ -0,0 +1,2 @@
+*** PLEASE DO NOT DELETE THIS FILE! ***
+This file is used to track an otherwise empty directory in git.
index 644b90a9a2d66e298fba4296680f0f85ca06f842..385173bb9f58d2739de9c6827d2b5fa45de2d894 100755 (executable)
@@ -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)