variable substitution in project pre/post build step....

General questions regarding the usage of CodeLite
Brane2
CodeLite Curious
Posts: 7
Joined: Sun Oct 05, 2014 2:09 am
Genuine User: Yes
IDE Question: C++
Contact:

variable substitution in project pre/post build step....

Post by Brane2 »

I have Codelite 9.0 compiled with gcc-5.2.0 on latest, mostly stable 64.bit Gentoo system.

For the life of me, I can't make Codelite substitute automatic variables in "Pre build" step as listed under "Help" option. For example, line:

echo "ProjectPath is $(ProjectPath)"
echo "WorkspacePath is $(WorkspacePath)"
...

returns when building:

./PCB.sh: line 5: ProjectPath: command not found
ProjectPath is
./PCB.sh: line 6: WorkspacePath: command not found
WorkspacePath is

IOW, both variables expand to empty string.
Every other of "Available Macros" that I took the time to try, behave the same - I get empty string.
What gives ?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: variable substitution in project pre/post build step....

Post by eranif »

This sounds like a bug to me, can you please open a bug report?
This does not sounds to hard to fix...

Thanks
Eran
Make sure you have read the HOW TO POST thread
Post Reply