~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/reltool/doc/src/reltool_examples.xml

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
  <header>
6
6
    <copyright>
7
7
      <year>2009</year>
8
 
      <year>2009</year>
 
8
      <year>2011</year>
9
9
      <holder>Ericsson AB, All Rights Reserved</holder>
10
10
    </copyright>
11
11
    <legalnotice>
45
45
    its server can be obtained with <c>reltool:get_server/1</c></p>
46
46
    
47
47
    <pre>
48
 
Erlang R13B02 (erts-5.7.3) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [kernel-poll:false]
 
48
Erlang R13B02 (erts-5.7.3) [source] [64-bit] [smp:4:4] [rq:4]
 
49
                           [async-threads:0] [kernel-poll:false]
49
50
 
50
51
Eshell V5.7.3  (abort with ^G)
51
52
1&gt; {ok, Win} = reltool:start([]).
72
73
    <title>Inspecting the configuration</title>
73
74
 
74
75
    <pre>
75
 
Erlang R13B02 (erts-5.7.3) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [kernel-poll:false]
 
76
Erlang R13B02 (erts-5.7.3) [source] [64-bit] [smp:4:4] [rq:4]
 
77
                           [async-threads:0] [kernel-poll:false]
76
78
 
77
79
Eshell V5.7.3  (abort with ^G)
78
 
1&gt; Config = {sys, [{escript, "examples/display_args", [{incl_cond, include}]},
 
80
1&gt; Config = {sys, [{escript, 
 
81
                    "examples/display_args",
 
82
                    [{incl_cond, include}]},
79
83
                   {app, inets, [{incl_cond, include}]},
80
84
                   {app, mnesia, [{incl_cond, exclude}]},
81
85
                   {app, ssl, [{incl_cond, exclude}]},
244
248
    <title>Generate release and script files</title>
245
249
    <pre>
246
250
5&gt; {ok, Server} = reltool:start_server([{config, {sys, [{boot_rel, "NAME"},
247
 
                                                        {rel, "NAME", "VSN", [kernel, stdlib, sasl]}]}}]).
 
251
                                                        {rel, "NAME", "VSN",
 
252
                                                        [sasl]}]}}]).
248
253
{ok,&lt;0.1288.0&gt;}
249
254
6&gt;  reltool:get_config(Server).
250
255
{ok,{sys,[{boot_rel,"NAME"},
251
 
          {rel,"NAME","VSN",[kernel,stdlib,sasl]}]}}
 
256
          {rel,"NAME","VSN",[sasl]}]}}
252
257
7&gt;  reltool:get_rel(Server, "NAME").
253
258
{ok,{release,{"NAME","VSN"},
254
259
             {erts,"5.7"},
297
302
  <section>
298
303
    <title>Create a target system</title>
299
304
    <pre>
300
 
Erlang R13B02 (erts-5.7.3) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [kernel-poll:false]
 
305
Erlang R13B02 (erts-5.7.3) [source] [64-bit] [smp:4:4] [rq:4]
 
306
                           [async-threads:0] [kernel-poll:false]
301
307
 
302
308
Eshell V5.7.3  (abort with ^G)
303
 
1&gt; Config = {sys, [{escript, "examples/display_args", [{incl_cond, include}]},
 
309
1&gt; Config = {sys, [{escript, 
 
310
                    "examples/display_args", 
 
311
                    [{incl_cond, include}]},
304
312
                   {app, inets, [{incl_cond, include}]},
305
313
                   {app, mnesia, [{incl_cond, exclude}]},
306
314
                   {app, ssl, [{incl_cond, exclude}]},
320
328
                 [{write_file,"start_erl.data","5.7.3 1.0"},
321
329
                  {create_dir,"1.0",
322
330
                              [{write_file,"start_clean.rel",
323
 
                                           [37,37,32,114,101,108,32,103,101,110,101,114,97,116|...]},
 
331
                                           [37,37,32,114,101,108,32,103,101,110,101|...]},
324
332
                               {write_file,"start_clean.script",
325
 
                                           [37,37,32,115,99,114,105,112,116,32,103,101,110|...]},
 
333
                                           [37,37,32,115,99,114,105,112,116,32|...]},
326
334
                               {write_file,"start_clean.boot",
327
 
                                           &lt;&lt;131,104,3,100,0,6,115,99,114,105,112,116,...&gt;&gt;},
 
335
                                           &lt;&lt;131,104,3,100,0,6,115,99,114,...&gt;&gt;},
328
336
                               {write_file,"start_sasl.rel",
329
337
                                           [37,37,32,114,101,108,32,103,101,110,101|...]},
330
338
                               {write_file,"start_sasl.script",
409
417
                                                      {copy_file,...},
410
418
                                                      {...}|...]},
411
419
                                         {create_dir,"src",
412
 
                                                     [{copy_file,[...]},{copy_file,...},{...}|...]}]}]},
 
420
                                                     [{copy_file,[...]},
 
421
                                                      {copy_file,...},{...}|...]}]}]},
413
422
                  {archive,"crypto-1.6.1.ez",[],
414
423
                           [{create_dir,"crypto-1.6.1",
415
424
                                        [{create_dir,"ebin",
416
 
                                                     [{copy_file,[...]},{copy_file,...},{...}|...]},
 
425
                                                     [{copy_file,[...]},
 
426
                                                      {copy_file,...},{...}|...]},
417
427
                                         {create_dir,"src",[{copy_file,...},{...}|...]}]}]},
418
428
                  {create_dir,"crypto-1.6.1",
419
429
                              [{create_dir,"priv",