variable substitution in project pre/post build step....
Posted: Mon Dec 07, 2015 2:08 am
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 ?
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 ?