Skip to content

variable substitution in project pre/post/etc build step.... #1060

@Brane2

Description

@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 ?

BTW: While at it, could you please check various other places, like Project Settings/General/{Program Arguments , Working Directory, etc} for which other users have reported practically identical issues ?
I have currently no simple way to test these, but i strongly suspect it is the same bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions