Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  Yaws and release handling

Guest
Posted: Fri Oct 30, 2009 10:20 am Reply with quote
Guest
Hi,

I wanted make a release tar.gz of my project using yaws. So, I included
yaws in the .app file like this:

{applications, [kernel, stdlib, sasl, ssl, yaws]},

and I also put it into the .rel file:

{yaws, "1.84"},

and expected it to work. There are two problems however:

* Yaws misses the compile module. This can be solved
satisfactorily by inserting the compiler application into
the .rel file by hand. But couldn't systools:make_tar resolve
this dependency automatically somehow?
* Yaws also needs the .hrl files but they do not get into
the .tar.gz. I can't figure out how to solve this. Any idea?

Regards,
Alpar

PS: I'm not very familiar with the release handling in erlang, so please
forgive me if I'm asking something stupid.



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
Guest
Posted: Fri Oct 30, 2009 10:44 am Reply with quote
Guest
Alp
chandru.m
Posted: Fri Oct 30, 2009 11:48 am Reply with quote
User Joined: 24 Oct 2007 Posts: 85
2009/10/30 Alp
View user's profile Send private message
Guest
Posted: Fri Oct 30, 2009 12:44 pm Reply with quote
Guest
On Fri, 2009-10-30 at 13:19 +0100, Alpár Jüttner wrote:
> > systools:make_tar has the option {dirs,[IncDir]} to specify what
> > directories you want included in the tar file.
> >
> > From the systools documentation for make_tar:
>
> > <quote> By default, the release package contains the directories
> > lib/App-Vsn/ebin and lib/App-Vsn/priv for each included application.
> > If more directories, the option dirs is supplied. Example:
> > {dirs,[src,examples]}.</quote>
>
> As far as I understand, IncDir here should be a dir of _my_ application
> and it will be installed under lib/MyApp-Vsn/. But the yaws .hrl's
> should go to lib/Yaws-Vsn/include, shouldn't they?

Ahh, the option {dirs, [include]} does the job. In fact, it will include
the 'include' dir of each application, which isn't very nice, but at
least it works.

Thanks,
Alpar

>
> Regards,
> Alpar
> >
> > cheers
> >
> > Chandru
> >
> >


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Post received from mailinglist
Guest
Posted: Fri Oct 30, 2009 12:54 pm Reply with quote
Guest
> systools:make_tar has the option {dirs,[IncDir]} to specify what
> directories you want included in the tar file.
>
> From the systools documentation for make_tar:

> <quote> By default, the release package contains the directories
> lib/App-Vsn/ebin and lib/App-Vsn/priv for each included application.
> If more directories, the option dirs is supplied. Example:
> {dirs,[src,examples]}.</quote>

As far as I understand, IncDir here should be a dir of _my_ application
and it will be installed under lib/MyApp-Vsn/. But the yaws .hrl's
should go to lib/Yaws-Vsn/include, shouldn't they?

Regards,
Alpar
>
> cheers
>
> Chandru
>
>


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

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
You can attach files in this forum
You can download files in this forum