View previous topic :: View next topic |
Author |
Message |
jcarrascal
Joined: 17 Apr 2007 Posts: 3
|
Posted: Tue Apr 17, 2007 8:30 pm Post subject: Copying a file |
|
|
Is there a way to copy a file to the destination folder?
I'd like to configure bud so that after the compile finishes it copies some data files to the build folder but haven't found a way. Right now I'm using a .bat file for that. |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Tue Apr 17, 2007 9:57 pm Post subject: Re: Copying a file |
|
|
jcarrascal wrote: | Is there a way to copy a file to the destination folder?
I'd like to configure bud so that after the compile finishes it copies some data files to the build folder but haven't found a way. Right now I'm using a .bat file for that. |
Sure. Have a look at the Configuration File documentation, specifically at the Final command.
Code: |
FINAL
This specifies a command that will run after the target has been successfully created. There can be any number of FINAL commands in a configuration file; they are all executed, and in the order presented.
You can place special tokens in the FINAL command line and these will be replaced just before running the command line.
{Target} The full path and name of the target file created
{TargetPath} The path of the target file created
{TargetBase} The name of the target file created
Example:
FINAL="c:\program files\upx202w\upx" --best -q {Target} >nul
|
_________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
|