mirror of https://github.com/tLDP/python-tldp
skip adding to removals if in --script mode
This commit is contained in:
parent
71fcbb8925
commit
d59850d433
|
@ -85,6 +85,7 @@ class Docbook4XML(BaseDoctype, SignatureChecker):
|
|||
s = '''"{config.docbook4xml_xsltproc}" > "{output.name_fo}" \\
|
||||
"{config.docbook4xml_xslprint}" \\
|
||||
"{output.validsource}"'''
|
||||
if not self.config.script:
|
||||
self.removals.add(self.output.name_fo)
|
||||
return self.shellscript(s, **kwargs)
|
||||
|
||||
|
|
|
@ -104,6 +104,7 @@ class Docbook5XML(BaseDoctype, SignatureChecker):
|
|||
s = '''"{config.docbook5xml_xsltproc}" > "{output.name_fo}" \\
|
||||
"{config.docbook5xml_xslprint}" \\
|
||||
"{output.validsource}"'''
|
||||
if not self.config.script:
|
||||
self.removals.add(self.output.name_fo)
|
||||
return self.shellscript(s, **kwargs)
|
||||
|
||||
|
|
|
@ -69,6 +69,7 @@ class DocbookSGML(BaseDoctype, SignatureChecker):
|
|||
--verbose \\
|
||||
-- "index.sgml" "{source.dirname}/index.sgml"'''
|
||||
indexsgml = os.path.join(self.source.dirname, 'index.sgml')
|
||||
if not self.config.script:
|
||||
self.removals.add(indexsgml)
|
||||
return self.shellscript(s, **kwargs)
|
||||
|
||||
|
@ -109,6 +110,7 @@ class DocbookSGML(BaseDoctype, SignatureChecker):
|
|||
--force \\
|
||||
-- "index.sgml" "{source.dirname}/index.sgml"'''
|
||||
logger.debug("%s creating %s", self.source.stem, indexsgml)
|
||||
if not self.config.script:
|
||||
self.removals.add(indexsgml)
|
||||
return self.shellscript(s, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in New Issue