diff options
author | Loïc Hoguin <[email protected]> | 2018-06-13 09:54:12 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-06-13 09:54:12 +0200 |
commit | 92b54aacc0de5446dd5497c39897b0bbff72e626 (patch) | |
tree | c3a98cfec636d1271f5804e5c19b35b208bba00d /docs/en/erlang.mk/1/guide/shell | |
parent | 8b5c3dc972b99f174750123c9e4abc96259c34a9 (diff) | |
download | ninenines.eu-92b54aacc0de5446dd5497c39897b0bbff72e626.tar.gz ninenines.eu-92b54aacc0de5446dd5497c39897b0bbff72e626.tar.bz2 ninenines.eu-92b54aacc0de5446dd5497c39897b0bbff72e626.zip |
Rebuild using Asciideck
Diffstat (limited to 'docs/en/erlang.mk/1/guide/shell')
-rw-r--r-- | docs/en/erlang.mk/1/guide/shell/index.html | 68 |
1 files changed, 25 insertions, 43 deletions
diff --git a/docs/en/erlang.mk/1/guide/shell/index.html b/docs/en/erlang.mk/1/guide/shell/index.html index ff3f3524..c287d6b1 100644 --- a/docs/en/erlang.mk/1/guide/shell/index.html +++ b/docs/en/erlang.mk/1/guide/shell/index.html @@ -62,66 +62,48 @@ <h1 class="lined-header"><span>Erlang shell</span></h1> -<div class="paragraph"><p>Erlang.mk provides a convenient target for starting a shell -with all the paths set properly to experiment with your code.</p></div> -<div class="sect1"> +<p>Erlang.mk provides a convenient target for starting a shell with all the paths set properly to experiment with your code.</p> <h2 id="_configuration">Configuration</h2> -<div class="sectionbody"> -<div class="paragraph"><p>The <code>SHELL_DEPS</code> variable can be used to define dependencies -that are only to be used when the <code>make shell</code> command is called. -For example, if you want to use <em>kjell</em> as your shell:</p></div> -<div class="listingblock"> -<div class="content"><!-- Generator: GNU source-highlight +<p>The <code>SHELL_DEPS</code> variable can be used to define dependencies that are only to be used when the <code>make shell</code> command is called. For example, if you want to use <em>kjell</em> as your shell:</p> +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><tt><span style="color: #009900">SHELL_DEPS =</span> kjell</tt></pre></div></div> -<div class="paragraph"><p>Dependencies are downloaded and compiled the first time you -run the <code>make shell</code> command.</p></div> -<div class="paragraph"><p>You can customize the executable used to start the Erlang shell. -To continue with our example, if you want to use <em>kjell</em> as your -shell, you also need to change <code>SHELL_ERL</code> and point it to the -<code>kjell</code> executable:</p></div> -<div class="listingblock"> -<div class="content"><!-- Generator: GNU source-highlight +<pre><tt><font color="#009900">SHELL_DEPS =</font> kjell</tt></pre> +</div></div> +<p>Dependencies are downloaded and compiled the first time you run the <code>make shell</code> command.</p> +<p>You can customize the executable used to start the Erlang shell. To continue with our example, if you want to use <em>kjell</em> as your shell, you also need to change <code>SHELL_ERL</code> and point it to the <code>kjell</code> executable:</p> +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><tt><span style="color: #009900">SHELL_ERL =</span> <span style="color: #009900">$(DEPS_DIR)</span>/kjell/bin/kjell</tt></pre></div></div> -<div class="paragraph"><p>You can specify additional options to be used when starting the -shell using the <code>SHELL_OPTS</code> variable:</p></div> -<div class="listingblock"> -<div class="content"><!-- Generator: GNU source-highlight +<pre><tt><font color="#009900">SHELL_ERL =</font> <font color="#009900">$(DEPS_DIR)</font>/kjell/bin/kjell</tt></pre> +</div></div> +<p>You can specify additional options to be used when starting the shell using the <code>SHELL_OPTS</code> variable:</p> +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><tt><span style="color: #009900">SHELL_OPTS =</span> -setcookie chocolate</tt></pre></div></div> -<div class="paragraph"><p>Any of the usual <code>erl</code> options can be used, including <code>-eval</code>:</p></div> -<div class="listingblock"> -<div class="content"><!-- Generator: GNU source-highlight +<pre><tt><font color="#009900">SHELL_OPTS =</font> -setcookie chocolate</tt></pre> +</div></div> +<p>Any of the usual <code>erl</code> options can be used, including <code>-eval</code>:</p> +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><tt><span style="color: #009900">SHELL_OPTS =</span> -eval <span style="color: #FF0000">'my_app:run()'</span></tt></pre></div></div> -</div> -</div> -<div class="sect1"> +<pre><tt><font color="#009900">SHELL_OPTS =</font> -eval <font color="#FF0000">'my_app:run()'</font></tt></pre> +</div></div> <h2 id="_usage">Usage</h2> -<div class="sectionbody"> -<div class="paragraph"><p>To start the shell, all you need is the following command:</p></div> -<div class="listingblock"> -<div class="content"><!-- Generator: GNU source-highlight +<p>To start the shell, all you need is the following command:</p> +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -<pre><tt>$ make shell</tt></pre></div></div> -<div class="paragraph"><p>The shell can be stopped as usual with a double Ctrl+C or the -command <code>q().</code>.</p></div> -<div class="paragraph"><p>Note that the <code>shell</code> target does not build the application. To do it, -use either the <code>app</code> target or, if you want to include also test -modules, the <code>test-build</code> target.</p></div> -</div> -</div> +<pre><tt>$ make shell</tt></pre> +</div></div> +<p>The shell can be stopped as usual with a double Ctrl+C or the command <code>q().</code>.</p> +<p>Note that the <code>shell</code> target does not build the application. To do it, use either the <code>app</code> target or, if you want to include also test modules, the <code>test-build</code> target.</p> + |