FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copying a file

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
jcarrascal



Joined: 17 Apr 2007
Posts: 3

PostPosted: Tue Apr 17, 2007 8:30 pm    Post subject: Copying a file Reply with quote

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
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Tue Apr 17, 2007 9:57 pm    Post subject: Re: Copying a file Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group