]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1002775 - For the purpose of continuous integration testing, makedocs.pl should...
authorDavid Lawrence <dkl@mozilla.com>
Tue, 29 Apr 2014 15:21:40 +0000 (15:21 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Tue, 29 Apr 2014 15:21:40 +0000 (15:21 +0000)
r/a=glob

docs/makedocs.pl

index d14e79434bcbf98487822b774520c7294f52d259..4f0f52579da7965abb02f7475e4ed4efe90cfa82 100755 (executable)
@@ -57,12 +57,14 @@ use File::Which qw(which);
 # Subs
 ###############################################################################
 
+my $error_found = 0;
 sub MakeDocs {
     my ($name, $cmdline) = @_;
 
     say "Creating $name documentation ..." if defined $name;
     say "$cmdline\n";
-    system $cmdline;
+    system($cmdline) == 0
+        or $error_found = 1;
     print "\n";
 }
 
@@ -160,3 +162,5 @@ foreach my $lang (@langs) {
 
     rmtree('doctrees', 0, 1);
 }
+
+die "Error occurred building the documentation\n" if $error_found;