id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	work_issues	upstream	reviewer	author	merged	dependencies	stopgaps
9426	Docbuilder ignores return code from subprocess.call()	leif	mvngu	"{{{devel/sage/doc/common/builder.py}}}:

In {{{builder_helper.f()}}}:
{{{
...
        logger.warning(build_command)
        subprocess.call(build_command, shell=True)

        logger.warning(""Build finished.  The built documents can be found in %s"", output_dir)
...
}}}

In {{{class DocBuilder}}}:
{{{
    def pdf(self):
        """"""
        Builds the PDF files for this document.  This is done by first
        (re)-building the LaTeX output, going into that LaTeX
        directory, and running 'make all-pdf' there.

        EXAMPLES::

            sage: import os, sys; sys.path.append(os.environ['SAGE_DOC']+'/common/'); import builder
            sage: b = builder.DocBuilder('tutorial')
            sage: b.pdf() #not tested
        """"""
        self.latex()
        os.chdir(self._output_dir('latex'))
        subprocess.call('make all-pdf', shell=True)

        pdf_dir = self._output_dir('pdf')
        for pdf_file in glob.glob('*.pdf'):
            shutil.move(pdf_file, os.path.join(pdf_dir, pdf_file))

        logger.warning(""Build finished.  The built documents can be found in %s"", pdf_dir)
}}}
"	defect	closed	major	sage-duplicate/invalid/wontfix	documentation	duplicate	Sphinx documentation builder error	jdemeyer		N/A	Minh Van Nguyen				
