From: justdave%syndicomm.com <> Date: Mon, 22 Mar 2004 15:15:36 +0000 (+0000) Subject: let the docs still build if the directories don't exist yet. X-Git-Tag: bugzilla-2.16.6~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba83e386e691db67bc497e5a91e741fd92d352c0;p=thirdparty%2Fbugzilla.git let the docs still build if the directories don't exist yet. --- 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');