Code::Blocks Forums

User forums => Help => Topic started by: cichmen on June 19, 2009, 09:29:50 am

Title: Variable expansion - Conditional evaluation
Post by: cichmen on June 19, 2009, 09:29:50 am
Hi,

I would like to do following construction in post-build step, but it does not work as I expect. It does not run PHP even $ACTIVE_EDITOR_EXT is php5.

$if($ACTIVE_EDITOR_EXT == 'php5'){PHP -l $ACTIVE_EDITOR_FILENAME}

Any advice?
Title: Re: Variable expansion - Conditional evaluation
Post by: mariocup on June 19, 2009, 09:46:08 am
Hi cichmen,

for example I am using in a post build step a command like:

Code
'[[ if (PLATFORM == PLATFORM_MSW) { print (_T("mkdir-mingw.exe")) } else { print (_T("mkdir")); } ]] -p lib/$(TARGET_NAME)'

Try to use the print command and see if it works.