Yaws and release handling

View: New views
5 Messages — Rating Filter:   Alert me  

Yaws and release handling

by Alpár Jüttner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Re: Yaws and release handling

by Claes Wikström :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alpár Jüttner wrote:
> Hi,
>
> I wanted make a release tar.gz of my project using yaws. So, I included
> yaws in the .app file like this:
>
.......
>
> PS: I'm not very familiar with the release handling in erlang, so please
> forgive me if I'm asking something stupid.
>

Neither am I - I'm afraid I've never used the release handler. So sorry,
I can't help you here. Maybe someone else on the list knows this stuff.

/klacke

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Re: Yaws and release handling

by chandru-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/30 Alpár Jüttner <alpar@...>
Hi,

I wanted make a release tar.gz of my project using yaws. So, I included
yaws in the .app file like this:
<snip>
     * 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?

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>

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@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Re: Yaws and release handling

by Alpár Jüttner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Re: Yaws and release handling

by Alpár Jüttner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list