[erlang-questions] using the target_system module

Kenneth Lundin kenneth.lundin@REDACTED
Wed Sep 23 15:44:30 CEST 2009


Hi,

On Mon, Sep 21, 2009 at 11:58 PM, Pablo Platt <pablo.platt@REDACTED> wrote:
> Hi,
>
> I'm using the target_system module from http://erlang.org/doc/system_principles/create_target.html
> The OTP application I'm using for tests is simpletest from http://eaglestreet.wordpress.com/2008/08/22/releasing_erlang_otp_code/
>
> The target_system module is really good.
> Is it officially supported and will be included in a future release or just an example?

It is just an example in the documentation.
But in the new R13B02 release you have the reltool application which
does the same thing
as "target-system" but in a more flexible way intended for use both
when you want to build
a traditional embedded system and when you want to build a self
contained package
for easy distribution and intallation to end users.

/Kenneth Erlang/OTP Ericsson
>
> I have several remarks:
>
> 1. It doesn't work with the Ubuntu Jaunty erlang package. The doc should indicate that it only works with R13B and above.
> 2. I had to manually change the permissions of some of the scripts under the bin directory to executable.
> Is it possible that the module will take care of that?
> 3. It took me some time to understand that bin/start can't run without sys.config file under the releases dir.
> Can bin/start throw an error if it can't find the sys.config file?
> 4. The module should create a log dir.
> 5. In my case the create method built relative path. I'm not sure if this is intended or not but it might cause issues.
> 6. It will be helpful to have a tar file online with a test application that works with this module for easy learning.
>
> Thanks
>
>
>
>


More information about the erlang-questions mailing list