Sha256: e2641cb83bce612d8dccb53b259c5746110eaa39df63d81962d4c09a9302cf78
Contents?: true
Size: 1022 Bytes
Versions: 4
Compression:
Stored size: 1022 Bytes
Contents
-module(make_boot). -export([write_scripts/1]). write_scripts(Args) -> [Name] = Args, io:format("write_scripts for ~p~n", [Name]), Erts = erlang:system_info(version), application:load(sasl), Version = "0.1", {value, {kernel, _, Kernel}} = lists:keysearch(kernel, 1, application:loaded_applications()), {value, {stdlib, _, Stdlib}} = lists:keysearch(stdlib, 1, application:loaded_applications()), {value, {sasl, _, Sasl}} = lists:keysearch(sasl, 1, application:loaded_applications()), Rel = "{release, {\"~s\", \"~s\"}, {erts, \"~s\"}, [" "{kernel, \"~s\"}, {stdlib, \"~s\"}, {sasl, \"~s\"}, {~s, \"~s\"}]}.", Lowername = string:to_lower(Name), Filename = lists:flatten(Lowername ++ ".rel"), io:format("Writing to ~p (as ~s)~n", [Filename, Lowername]), {ok, Fs} = file:open(Filename, [write]), io:format(Fs, Rel, [Name, Version, Erts, Kernel, Stdlib, Sasl, Lowername, Version]), file:close(Fs), systools:make_script(Lowername, [local]), halt().
Version data entries
4 entries across 4 versions & 2 rubygems