aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-01-01 23:49:37 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-01-01 23:49:37 +0200
commit53cddaec8cf8af941d1c2d5f9f5b71ae8c24ca5e (patch)
tree5880b64acc4a31b975da5fd5af5e3be34152cc44
parent5e51c526a17b4f2c34e1bcc9d2809ac3f1f200c1 (diff)
downloadmeson-53cddaec8cf8af941d1c2d5f9f5b71ae8c24ca5e.zip
meson-53cddaec8cf8af941d1c2d5f9f5b71ae8c24ca5e.tar.gz
meson-53cddaec8cf8af941d1c2d5f9f5b71ae8c24ca5e.tar.bz2
Cd into build directory before starting.
-rwxr-xr-xshellgenerator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/shellgenerator.py b/shellgenerator.py
index 4ce023f..1fe5bee 100755
--- a/shellgenerator.py
+++ b/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 |\