コード例 #1
0
ファイル: task.py プロジェクト: JDevlieghere/InTeXration
 def _bibtex(self):
     """Compile bibtex."""
     with cd(self.build.path):
         if subprocess.call([self.BIBTEX, self.build.bib],
                            stdout=subprocess.DEVNULL,
                            stderr=subprocess.DEVNULL) != 0:
             logging.warning("%s Bibtex failed for %s", self.identifier, self.build.bib)
コード例 #2
0
ファイル: task.py プロジェクト: JDevlieghere/InTeXration
 def _makeindex(self):
     """Make index."""
     with cd(self.build.path):
         if subprocess.call([self.MAKEINDEX, self.build.idx],
                            stdout=subprocess.DEVNULL,
                            stderr=subprocess.DEVNULL) != 0:
             logging.warning("%s Makeindex failed for %s", self.identifier, self.build.idx)
コード例 #3
0
ファイル: task.py プロジェクト: JDevlieghere/InTeXration
 def _compile(self):
     """Compile with pdflatex."""
     with cd(self.build.path):
         if subprocess.call([self.PDFLATEX, '-interaction=nonstopmode', self.build.tex],
                            stdout=subprocess.DEVNULL,
                            stderr=subprocess.DEVNULL) != 0:
             logging.warning("%s Compilation finished with errors for %s", self.identifier, self.build.tex)
コード例 #4
0
 def _makeindex(self):
     """Make index."""
     with cd(self.build.path):
         if subprocess.call([self.MAKEINDEX, self.build.idx],
                            stdout=subprocess.DEVNULL,
                            stderr=subprocess.DEVNULL) != 0:
             logging.warning("%s Makeindex failed for %s", self.identifier,
                             self.build.idx)
コード例 #5
0
 def _bibtex(self):
     """Compile bibtex."""
     with cd(self.build.path):
         if subprocess.call([self.BIBTEX, self.build.bib],
                            stdout=subprocess.DEVNULL,
                            stderr=subprocess.DEVNULL) != 0:
             logging.warning("%s Bibtex failed for %s", self.identifier,
                             self.build.bib)
コード例 #6
0
 def _compile(self):
     """Compile with pdflatex."""
     with cd(self.build.path):
         if subprocess.call(
             [self.PDFLATEX, '-interaction=nonstopmode', self.build.tex],
                 stdout=subprocess.DEVNULL,
                 stderr=subprocess.DEVNULL) != 0:
             logging.warning("%s Compilation finished with errors for %s",
                             self.identifier, self.build.tex)