lfe-deprecated / lfetool

DEPRECATED - See:
https://github.com/lfe-rebar3/
Other
61 stars 19 forks source link

Figure out bootstrapping #49

Open oubiwann opened 10 years ago

oubiwann commented 10 years ago

Bootstrapping lfetool

LFE projects are created with the understanding that lfetool is installed and available. If, however, we were to make lfetool a project that had dependencies such as erl and LFE (and other deps in a rebar.config), we have to consider things more carefully.

Here is a list of lfetool commands that can be executed without Erlang installed:

The following need at least Erlang (since they install into a directory obtained by making erl calls):

The following require lfetool to be installed:

The following require LFE:

oubiwann commented 10 years ago

So, my first thought is to handle that first batch of install commands in the shell script, and everything else as options in an LFE command parser module.

oubiwann commented 10 years ago

Bootstrapping for lfetool version 2 might look like this:

At this point, everything will be availale for use.

oubiwann commented 10 years ago

Added code that can be used to bootstrap plugins in d803117. This is a function that will compile all plugins, official as well as user-created.

oubiwann commented 10 years ago

See related: issue #81.