After building a target with C::B, suppose I want to copy it to another folder (e.g. I had a workspace building 5 x DLL's or Shared Objects and I wanted to copy them all into a common folder). I assume I'd have to do this as a post-build step. Can anyone tell me what the appropriate command would be?
1) Create a batch file for windows with the command to copy the required files and similarly create one shell script for Linux.
2) Add the following command to the Post-Build section.
[[ if (PLATFORM == PLATFORM_MSW) { print("cmd /C \"test.bat\""); } else { print("/bin/sh foo.sh"); } ]]
Please note that the above code won't work if it's splitted into multiple lines. Also adjust the command for Linux as I've not tested it.
You can also use the script to copy files. But that would raise a security warning (which you can disable at your wish). IMHO, the first method is the better one.