[erlang-questions] Specify version in release using woldcards?

C. Florian Ebeling florian.ebeling@REDACTED
Tue Oct 14 15:42:05 CEST 2008


On Tue, Oct 14, 2008 at 3:36 PM, Dale Harvey <harveyd@REDACTED> wrote:
> might not be the best solution, but I just build the spec file dynamically
> before building the boot script
>
> get_vsn(Module) ->
>     AppFile = code:lib_dir(Module)++"/ebin/"++atom_to_list(Module)++".app",
>     {ok,[{application,_App,Attrs}]} = file:consult(AppFile),
>     {value,{vsn,Vsn}} = lists:keysearch(vsn,1,Attrs),
>     Vsn
>
> get_vsn(crypto) will then get you the installed version of crypto
>
> use get_vsn and erlang:system_info(version) to build the spec file,
> write it, and then call make_script

yes, I was kind of hoping to avoid that route :)
Anyway, thanks for posting the details how to do
that.

Florian



-- 
Florian Ebeling
Twitter: febeling
florian.ebeling@REDACTED



More information about the erlang-questions mailing list