Page 1 of 1

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

Posted: Mon Dec 07, 2015 2:08 am
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 ?

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

Posted: Mon Dec 07, 2015 10:11 am
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