summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorjake%bugzilla.org <>2003-06-14 01:37:12 +0200
committerjake%bugzilla.org <>2003-06-14 01:37:12 +0200
commit6bab73fe02dc15f3a68dc29ac2e7ba1814fdfa1a (patch)
tree0e3b9fb4c4c97aa1b5fd4809ee0b5814603c213e /docs
parentd8826939e7d8545e887d3976d951d4daebd9c1a6 (diff)
downloadbugzilla-6bab73fe02dc15f3a68dc29ac2e7ba1814fdfa1a.tar.gz
bugzilla-6bab73fe02dc15f3a68dc29ac2e7ba1814fdfa1a.tar.xz
Optionally create a PDF version of the docs.
Diffstat (limited to 'docs')
-rw-r--r--docs/makedocs.pl20
1 files changed, 19 insertions, 1 deletions
diff --git a/docs/makedocs.pl b/docs/makedocs.pl
index 18fdf0a62..d05b145e0 100644
--- a/docs/makedocs.pl
+++ b/docs/makedocs.pl
@@ -19,6 +19,7 @@
# Rights Reserved.
#
# Contributor(s): Matthew Tuck <matty@chariot.net.au>
+# Jacob Steenhagen <jake@bugzilla.org>
# This script compiles all the documentation.
@@ -55,7 +56,7 @@ sub MakeDocs($$) {
my ($name, $cmdline) = @_;
- print "Creating $name documentation ...\n";
+ print "Creating $name documentation ...\n" if defined $name;
print "$cmdline\n\n";
system $cmdline;
print "\n";
@@ -76,3 +77,20 @@ MakeDocs('big HTML', "jade -V nochunks -t sgml -i html -d " .
"../xml/Bugzilla-Guide.xml > Bugzilla-Guide.html");
MakeDocs('big text', "lynx -dump -justify=off -nolist Bugzilla-Guide.html " .
"> ../txt/Bugzilla-Guide.txt");
+
+if (! grep("--with-pdf", @ARGV)) {
+ exit;
+}
+
+MakeDocs('PDF', "jade -t tex -d $LDP_HOME/ldp.dsl\#print $JADE_PUB/xml.dcl " .
+ '../xml/Bugzilla-Guide.xml');
+chdir '../pdf';
+MakeDocs(undef, 'mv ../xml/Bugzilla-Guide.tex .');
+MakeDocs(undef, 'jadetex Bugzilla-Guide.tex');
+MakeDocs(undef, 'jadetex Bugzilla-Guide.tex');
+MakeDocs(undef, 'jadetex Bugzilla-Guide.tex');
+MakeDocs(undef, 'dvips -o Bugzilla-Guide.ps Bugzilla-Guide.dvi');
+MakeDocs(undef, 'ps2pdf Bugzilla-Guide.ps Bugzilla-Guide.pdf');
+MakeDocs(undef, 'rm Bugzilla-Guide.tex Bugzilla-Guide.log Bugzilla-Guide.dvi ' .
+ 'Bugzilla-Guide.aux Bugzilla-Guide.ps');
+