]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 961775 - add "--pod-only" and "--with-pdf" switches to makedocs.pl. Patches by...
authorGervase Markham <gerv@gerv.net>
Mon, 20 Jan 2014 16:04:51 +0000 (16:04 +0000)
committerGervase Markham <gerv@mozilla.org>
Mon, 20 Jan 2014 16:04:51 +0000 (16:04 +0000)
docs/makedocs.pl

index a5511d2c4a6539c81806d82a3b26419730c67477..e46f7e7da5faa60ce19e82fc0f70c12caab5a83c 100755 (executable)
@@ -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;
 }