minor cosmetic improvements to generated shell file

This commit is contained in:
Martin A. Brown 2016-03-08 09:11:09 -08:00
parent 19f04a2c23
commit ca8b8e211f
1 changed files with 5 additions and 3 deletions

View File

@ -25,8 +25,7 @@ set -o pipefail
''' '''
postamble = ''' postamble = '''
# -- end of file # -- end of file'''
'''
def depends(*predecessors): def depends(*predecessors):
@ -138,7 +137,10 @@ class BaseDoctype(object):
logger.debug("%s chdir to dir %s.", logger.debug("%s chdir to dir %s.",
self.output.stem, self.output.dirname) self.output.stem, self.output.dirname)
if self.config.script: if self.config.script:
s = 'cd -- "{output.dirname}"' s = '''
# - - - - - {source.stem} - - - - - -
cd -- "{output.dirname}"'''
return self.shellscript(s) return self.shellscript(s)
os.chdir(self.output.dirname) os.chdir(self.output.dirname)
return True return True