Cd into build directory before starting.

pull/15/head
Jussi Pakkanen 12 years ago
parent 5e51c526a1
commit 53cddaec8c
  1. 2
      shellgenerator.py

@ -34,6 +34,8 @@ class ShellGenerator():
outfile.write('echo This is an autogenerated shell script build file for project \\"%s\\".\n'
% self.interpreter.get_project())
outfile.write('echo This is experimental and most likely will not work!\n')
cdcmd = ['cd', self.environment.get_build_dir()]
outfile.write(' '.join(shell_quote(cdcmd)) + '\n')
self.generate_commands(outfile)
outfile.close()
os.chmod(outfilename, stat.S_IREAD | stat.S_IWRITE | stat.S_IEXEC |\

Loading…
Cancel
Save