|
| 1 | +{ok, VsnData} = file:read_file("../VERSION"), |
| 2 | +Vsn = re:replace(VsnData, "^\\s+|\\s+$", "", [global, {return, list}]), |
| 3 | + |
| 4 | +[ |
| 5 | + {sys, [ |
| 6 | + {lib_dirs, []}, |
| 7 | + {erts, [{mod_cond, derived}, {app_file, strip}]}, |
| 8 | + {app_file, strip}, |
| 9 | + {rel, "elixir", Vsn, [ |
| 10 | + kernel, |
| 11 | + stdlib, |
| 12 | + elixir |
| 13 | + ]}, |
| 14 | + {rel, "start_clean", "1", [ |
| 15 | + kernel, |
| 16 | + stdlib |
| 17 | + ]}, |
| 18 | + {boot_rel, "elixir"}, |
| 19 | + {profile, development}, |
| 20 | + {excl_archive_filters, [".*"]}, %% Do not archive built libs |
| 21 | + {excl_app_filters, ["\.gitignore"]}, |
| 22 | + |
| 23 | + {app, elixir, [{lib_dir, "../lib/elixir"}]}, |
| 24 | + {app, eex, [{lib_dir, "../lib/eex"},{incl_cond, include}]}, |
| 25 | + {app, ex_unit, [{lib_dir, "../lib/ex_unit"},{incl_cond, include}]}, |
| 26 | + {app, iex, [{lib_dir, "../lib/iex"},{incl_cond, include}]}, |
| 27 | + {app, mix, [{lib_dir, "../lib/mix"},{incl_cond, include}]}, |
| 28 | + |
| 29 | + {app, appmon, [{incl_cond, include}]}, |
| 30 | + {app, asn1, [{incl_cond, include}]}, |
| 31 | + {app, common_test, [{incl_cond, include}]}, |
| 32 | + {app, compiler, [{incl_cond, include}]}, |
| 33 | + |
| 34 | + {app, cosEvent, [{incl_cond, include}]}, |
| 35 | + {app, cosEventDomain, [{incl_cond, include}]}, |
| 36 | + {app, cosFileTransfer, [{incl_cond, include}]}, |
| 37 | + {app, cosNotification, [{incl_cond, include}]}, |
| 38 | + {app, cosProperty, [{incl_cond, include}]}, |
| 39 | + {app, cosTime, [{incl_cond, include}]}, |
| 40 | + {app, cosTransactions, [{incl_cond, include}]}, |
| 41 | + |
| 42 | + {app, crypto, [{incl_cond, include}]}, |
| 43 | + {app, debugger, [{incl_cond, include}]}, |
| 44 | + {app, dialyzer, [{incl_cond, include}]}, |
| 45 | + {app, diameter, [{incl_cond, include}]}, |
| 46 | + {app, et, [{incl_cond, include}]}, |
| 47 | + {app, gs, [{incl_cond, include}]}, |
| 48 | + {app, hipe, [{incl_cond, include}]}, |
| 49 | + {app, ic, [{incl_cond, include}]}, |
| 50 | + {app, inets, [{incl_cond, include}]}, |
| 51 | + {app, megaco, [{incl_cond, include}]}, |
| 52 | + {app, mnesia, [{incl_cond, include}]}, |
| 53 | + {app, observer, [{incl_cond, include}]}, |
| 54 | + {app, odbc, [{incl_cond, include}]}, |
| 55 | + {app, orber, [{incl_cond, include}]}, |
| 56 | + {app, os_mon, [{incl_cond, include}]}, |
| 57 | + {app, otp_mibs, [{incl_cond, include}]}, |
| 58 | + {app, parsetools, [{incl_cond, include}]}, |
| 59 | + {app, percept, [{incl_cond, include}]}, |
| 60 | + {app, pman, [{incl_cond, include}]}, |
| 61 | + {app, public_key, [{incl_cond, include}]}, |
| 62 | + {app, reltool, [{incl_cond, include}]}, |
| 63 | + {app, runtime_tools, [{incl_cond, include}]}, |
| 64 | + {app, sasl, [{incl_cond, include}]}, |
| 65 | + {app, snmp, [{incl_cond, include}]}, |
| 66 | + {app, ssh, [{incl_cond, include}]}, |
| 67 | + {app, ssl, [{incl_cond, include}]}, |
| 68 | + {app, syntax_tools, [{incl_cond, include}]}, |
| 69 | + {app, test_server, [{incl_cond, include}]}, |
| 70 | + {app, toolbar, [{incl_cond, include}]}, |
| 71 | + {app, tools, [{incl_cond, include}]}, |
| 72 | + {app, tv, [{incl_cond, include}]}, |
| 73 | + {app, typer, [{incl_cond, include}]}, |
| 74 | + {app, webtool, [{incl_cond, include}]}, |
| 75 | + {app, xmerl, [{incl_cond, include}]} |
| 76 | + ]}, |
| 77 | + |
| 78 | + {target_dir, "elixir"}, |
| 79 | + |
| 80 | + {overlay, [ |
| 81 | + {copy, "files/sys.config", "releases/\{\{rel_vsn\}\}/sys.config"}, |
| 82 | + {copy, "../bin/elixir", "bin/elixir"}, |
| 83 | + {copy, "../bin/elixir.bat", "bin/elixir.bat"}, |
| 84 | + {copy, "../bin/elixirc", "bin/elixirc"}, |
| 85 | + {copy, "../bin/elixirc.bat", "bin/elixirc.bat"}, |
| 86 | + {copy, "../bin/iex", "bin/iex"}, |
| 87 | + {copy, "../bin/iex.bat", "bin/iex.bat"}, |
| 88 | + {copy, "../bin/mix", "bin/mix"}, |
| 89 | + {copy, "../bin/mix.bat", "bin/mix.bat"} |
| 90 | + ]} |
| 91 | +]. |
0 commit comments