[erlang-questions] How do I include a library across muiltple apps in a release?

Matt Williamson dawsdesign@REDACTED
Sat Aug 30 17:28:56 CEST 2008


To make things clear. My goal is to share a library module across multiple
application in a release, but I'm not quite sure how to go about it.

On Sat, Aug 30, 2008 at 8:22 AM, Dale Harvey <harveyd@REDACTED> wrote:

> you only need to write a .app file
> from http://erlang.org/doc/design_principles/applications.html#7
>
> The contents of a minimal .app file for a library application libapp looks
> like this:
>
> {application, libapp, []}.
>
> (I think the docs might be misleading though, I got errors using the
> minimal,
> this is what I use
>
> {application, appname, [
>   {description, "Description"},
>   {vsn, "1.0"},
>   {modules,[]},
>   {registered,[]},
>   {applications, [kernel, stdlib]}
> ]}.
>
> then have systools find that app file when generating the .rel
>
> 2008/8/30 Matt Williamson <dawsdesign@REDACTED>
>
>> Let's say I have a typical release directory like so:
>>
>> /myrel
>>     |- lib/
>>         |- app1/
>>             |- src/
>>             |- ebin/
>>             |- include/
>>             |- doc/
>>         |- app2/...
>>         |- app3/...
>>
>> How would I include a single module, which can be called by modules in all
>> of the applications? The only two ways I can think of is make it into an app
>> (I personally think that's overkill because I just want to call a function
>> in the module) or make a symlink, which won't work in windows.
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080830/0a98fd2e/attachment.htm>


More information about the erlang-questions mailing list