Roma standalone #512

Merged
zxq9 merged 7 commits from roma_standalone into roma 2019-01-31 17:51:57 +09:00
zxq9 commented 2019-01-30 00:03:19 +09:00 (Migrated from gitlab.com)

Created by: hanssv

A simple standalone compiler (as escript). It can dump the resulting Erlang map to a file (using term_to_binary(). This is required by - https://www.pivotaltracker.com/story/show/163553535

*Created by: hanssv* A simple standalone compiler (as escript). It can dump the resulting Erlang map to a file (using `term_to_binary()`. This is required by - https://www.pivotaltracker.com/story/show/163553535
rvirding (Migrated from gitlab.com) approved these changes 2019-01-30 00:03:19 +09:00
rvirding commented 2019-01-30 18:24:35 +09:00 (Migrated from gitlab.com)

If you add to rebar.config

{post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
               escriptize,
               "cp \"$REBAR_BUILD_DIR/bin/aesophia\" ./aesophia"},
              {"win32",
               escriptize,
               "robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ aesophia* "
               "/njs /njh /nfl /ndl & exit /b 0"} % silence things
             ]}.

{escript_incl_apps,
 [aesophia,aebytecode]}.
{escript_main_app, aesophia}.
{escript_name, aesophia}.
{escript_emu_args, "%%! +sbtu +A0\n"}.

it will automaticaly copy the escript file to the top directory when you run rebar3 escriptize and give you better control./

If you add to rebar.config ``` {post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)", escriptize, "cp \"$REBAR_BUILD_DIR/bin/aesophia\" ./aesophia"}, {"win32", escriptize, "robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ aesophia* " "/njs /njh /nfl /ndl & exit /b 0"} % silence things ]}. {escript_incl_apps, [aesophia,aebytecode]}. {escript_main_app, aesophia}. {escript_name, aesophia}. {escript_emu_args, "%%! +sbtu +A0\n"}. ``` it will automaticaly copy the escript file to the top directory when you run `rebar3 escriptize` and give you better control./
zxq9 commented 2019-01-30 19:21:46 +09:00 (Migrated from gitlab.com)

Created by: ThomasArts

Review: Approved

*Created by: ThomasArts* **Review:** Approved
rvirding commented 2019-01-31 17:50:33 +09:00 (Migrated from gitlab.com)

approved this merge request

approved this merge request
zxq9 commented 2019-01-31 17:51:57 +09:00 (Migrated from gitlab.com)

Merged by: hanssv at 2019-01-31 08:51:57 UTC

*Merged by: hanssv at 2019-01-31 08:51:57 UTC*
Sign in to join this conversation.
No description provided.