aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-04-29 15:21:40 +0000
committerDavid Lawrence <dkl@mozilla.com>2014-04-29 15:21:40 +0000
commit4ad3e5877d3e01b8de6f9a54d0f12ed3827c2ff8 (patch)
treec35e7287c91c31f2a78c92af6d5c67f55a21d99c /docs
parentcfbeadc4502fc9bc4937b1dd65efc585938172db (diff)
downloadbugs-4ad3e5877d3e01b8de6f9a54d0f12ed3827c2ff8.tar
bugs-4ad3e5877d3e01b8de6f9a54d0f12ed3827c2ff8.tar.gz
bugs-4ad3e5877d3e01b8de6f9a54d0f12ed3827c2ff8.tar.bz2
bugs-4ad3e5877d3e01b8de6f9a54d0f12ed3827c2ff8.tar.xz
bugs-4ad3e5877d3e01b8de6f9a54d0f12ed3827c2ff8.zip
Bug 1002775 - For the purpose of continuous integration testing, makedocs.pl should return failed status if one or more errors occurred building docs
r/a=glob
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/makedocs.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/makedocs.pl b/docs/makedocs.pl
index d14e79434..4f0f52579 100755
--- a/docs/makedocs.pl
+++ b/docs/makedocs.pl
@@ -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;