Invoking MSYS bash from Windows cmd

Posted by daevius on Stack Overflow See other posts from Stack Overflow or by daevius
Published on 2010-05-02T09:22:45Z Indexed on 2010/05/02 9:27 UTC
Read the original article Hit count: 368

Filed under:
|
|
|
|

I'm using GCC on Windows7 (using the TDM's build). I installed MSYS to be able to execute make and compile using makefiles. However, it is tedious to every time start up the MSYS bash shell, navigate to the directory of the project and run make.

What I want is to automate this process. I prefer to have a batch file in Windows, or something similar, from which I then invoke the MSYS bash. It should navigate to the directory the batch file resides in and call "make".

Is this possible? Can I send commands to MSYS bash from cmd (like navigation / invoking make)? Or can I let the MSYS bash run a "bash script", which sets the commands to be executed much like batch scripts?

Thank you.

PS: this is something similar as this question: http://stackoverflow.com/questions/2546757/executing-msys-from-cmd-exe-with-arguments

© Stack Overflow or respective owner

Related posts about c++

Related posts about c