Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add missing template for bootstrap

  • Loading branch information...
commit 3e8b4ed08fb5561608dd332b9cc8df05526c1b8d 1 parent 5907ff8
@ericbmerritt ericbmerritt authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 priv/jxa_bootstrap.tmpl
View
16 priv/jxa_bootstrap.tmpl
@@ -0,0 +1,16 @@
+%% THIS IS A GENERATED FILE, DO NOT EDIT DIRECTLY
+-module(jxa_bootstrap).
+
+-export([do_bootstrap/1]).
+
+do_bootstrap([Output, Name]) ->
+ io:format("writing beam ~p~n", [Output]),
+ AST =
+ <<<<REPLACE-THIS-WITH-AST>>>>
+ ,
+ case compile:forms(AST, [binary, from_core, return_errors, debug_info]) of
+ {ok , _, Result} ->
+ ok = file:write_file(Output, Result);
+ Error ->
+ erlang:throw(Error)
+ end.
Please sign in to comment.
Something went wrong with that request. Please try again.