From ba83e386e691db67bc497e5a91e741fd92d352c0 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Mon, 22 Mar 2004 15:15:36 +0000 Subject: [PATCH] let the docs still build if the directories don't exist yet. --- docs/makedocs.pl | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/docs/makedocs.pl b/docs/makedocs.pl index d05b145e0e..2fb0911b2f 100644 --- a/docs/makedocs.pl +++ b/docs/makedocs.pl @@ -68,6 +68,20 @@ sub MakeDocs($$) { ############################################################################### chdir dirname($0); + +if (!-d 'html') { + unlink 'html'; + mkdir 'html', 0755; +} +if (!-d 'txt') { + unlink 'txt'; + mkdir 'txt', 0755; +} +if (!-d 'pdf') { + unlink 'pdf'; + mkdir 'pdf', 0755; +} + chdir 'html'; MakeDocs('separate HTML', "jade -t sgml -i html -d $LDP_HOME/ldp.dsl\#html " . @@ -86,11 +100,8 @@ 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'); +MakeDocs(undef, 'pdfjadetex Bugzilla-Guide.tex'); +MakeDocs(undef, 'pdfjadetex Bugzilla-Guide.tex'); +MakeDocs(undef, 'pdfjadetex Bugzilla-Guide.tex'); +MakeDocs(undef, 'rm Bugzilla-Guide.tex Bugzilla-Guide.log Bugzilla-Guide.aux Bugzilla-Guide.out'); -- 2.47.2