How to run a bash script from the build command of eclipse IDE on windows
I have a C/C++ project which has its own make files and is imported to a STM32CubeIDE on Win 11.
In order to compile the project, I have to enter some commands in git-bash. so for simplicity, I wrote them into a .sh file which is named build.sh, and put it in the project folder, since then I just need to run this in bash like this:
source build.sh
And here is its content:
#!/bin/sh
source Q:/stm32.sh
cd Q:/dev/my_project
make build_allRight now, I want this script to be called, whenever I press the Build button of the IDE. I found out that for this I have to change the build command from Propertise->C/C++ Build, uncheck the use default build command and then enter the proper command for running the script. But I could have not done this by now. I've tried to solve this problem by entering this
bash source Q:\dev\my_project\build.shinto the build command, which didn't work.
So my question is that what should I enter here to run the build.sh? Do you know a better solution to my problem?
