[Lazarus] Publishing a Lazarus project - 'Command after'

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 26 20:09:08 CEST 2008


On Thu, 26 Jun 2008 17:31:11 +0200
csanyipal at gmail.com (Csányi Pál) wrote:

> Hello!
> 
> I have installed on Debian GNU/Linux Etch Lazarus version 0.9.25
> beta Date 2008-6-18. 
> 
> I try to publish a project with 'Command after'.
> 
> If I use as a 'Command after' in the 'Publish Project...' window the:
> 
> tar cjf $(ProjPath)/project.tar.bz2 $(ProjPublishDir)
> 
> command, then almost everything is OK:
> 
> the project.tar.bz2 is in the project directory, but if I untar it
> 
> with command: 
> 
> tar xjf project.tar.bz2
> 
> then I get /lot/of/directories/project_files.

Try the -C option of tar. For example:

/bin/tar czf $(TestDir)/projectname.tgz -C $(TestDir) projectname

 
> What to put in this command 
>  
> tar cjf $(?)/lptinterface.tar.bz2 $(ProjPublishDir)
>          ^^^
>     at this point
> 
> to get the project files in the project.tar.bz2 without these
> directories that is the path to the project directory?
> 
> What are these variables: $(ProjPublishDir), etc., and how many are
> there?
> 
> Where can I read about them?

http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames

 
> Any advices will be appreciated!


Mattias




More information about the Lazarus mailing list