From: Gervase Markham Date: Mon, 20 Jan 2014 16:04:51 +0000 (+0000) Subject: Bug 961775 - add "--pod-only" and "--with-pdf" switches to makedocs.pl. Patches by... X-Git-Tag: bugzilla-4.5.2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4c5d1ac6dc6148c10cfbbbdca083791322fede9;p=thirdparty%2Fbugzilla.git Bug 961775 - add "--pod-only" and "--with-pdf" switches to makedocs.pl. Patches by gerv and LpSolit; r=wicked, a=glob. --- diff --git a/docs/makedocs.pl b/docs/makedocs.pl index a5511d2c4a..e46f7e7da5 100755 --- a/docs/makedocs.pl +++ b/docs/makedocs.pl @@ -170,7 +170,9 @@ foreach my $lang (@langs) { make_pod() if $pod_simple; + next if grep { $_ eq '--pod-only' } @ARGV; + MakeDocs('HTML', 'make html'); MakeDocs('TXT', 'make text'); - MakeDocs('PDF', 'make latexpdf'); + MakeDocs('PDF', 'make latexpdf') if grep { $_ eq '--with-pdf' } @ARGV; }