I'm looking at the way a self-contained script is created out of the rebar Erlang application. Essentially, a bootstrap script takes care of loading and compressing all files from ebin and priv into memory, to finally write them into the self-contained "rebar" script.
I kinda like the approach and I'm thinking if it would be easily possible the same concept to Erlang releases.
- Would it make sense to have a self-contained script for an Erlang release?
- Does this exist somewhere out there, already?
- One of the things this potential "release-bootstrap" file should do is to take care of application dependencies and so on. Would it be possible to re-use what already exist in the Erlang distribution, without re-inventing the wheel?
- Are there any gotchas to keep in mind, when trying to achieve a self-contained script for an Erlang release?