Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » run a bash script for compiling(run a bash script from build command of eclipse IDE on windows)
run a bash script for compiling [message #1857047] Sat, 14 January 2023 21:13
ali Rostami is currently offline ali RostamiFriend
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:
source build.sh

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

Previous Topic:Can't remote debug C++
Next Topic:How to build in docker?
Goto Forum:
  


Current Time: Mon Jan 20 00:29:01 GMT 2025

Powered by FUDForum. Page generated in 0.03054 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top