run a bash script for compiling [message #1857047] |
Sat, 14 January 2023 21:13 |
ali Rostami Messages: 1 Registered: January 2023 |
Junior Member |
|
|
I have a C/C++ project which is imported to an eclipse based IDE (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 which is named build.sh, and put it in the project folder, since then I just need to run this script like this:
in git-bash, and here is its content:
#!/bin/sh
source Q:/stm32.sh
cd Q:/dev/my_project
make build_all
Right 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 ${workspace_loc:/${ProjName}/build.sh} into 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 for my problem?
[Updated on: Sun, 15 January 2023 11:38] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03054 seconds