mirror of https://github.com/tLDP/python-tldp
minor cosmetic improvements to generated shell file
This commit is contained in:
parent
19f04a2c23
commit
ca8b8e211f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue