aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDave Cottlehuber <[email protected]>2014-10-29 23:47:30 +0100
committerDave Cottlehuber <[email protected]>2014-11-24 15:30:18 +0100
commitc19b5948495be493b6341d3ff1b03da599a0cd0a (patch)
tree5595ab6834404067d931eb9db5648e525b0893b5 /README.md
parentfd5d4ca6d98abc6e05ac57c1f670f684f90294bb (diff)
downloaderlang.mk-c19b5948495be493b6341d3ff1b03da599a0cd0a.tar.gz
erlang.mk-c19b5948495be493b6341d3ff1b03da599a0cd0a.tar.bz2
erlang.mk-c19b5948495be493b6341d3ff1b03da599a0cd0a.zip
add escript plugin
Diffstat (limited to 'README.md')
-rw-r--r--README.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/README.md b/README.md
index c2d83a7..df87bf3 100644
--- a/README.md
+++ b/README.md
@@ -358,6 +358,33 @@ This plugin is available by default. It adds automatic
compilation of ErlyDTL templates found in `templates/*.dtl`
or any subdirectory.
+Escript plugin
+--------------
+
+This plugin is available by default. It adds the following
+target:
+
+`escript` which creates a shell-executable archive named
+the same as your `$(PROJECT)`, containing the following files
+from your application and its dependencies:
+
+* `*.beam`
+* contents of `priv/`
+* `sys.config` for your application
+
+There are a number of optional configuration parameters:
+
+* `ESCRIPT_NAME` if a different output file is required
+* `ESCRIPT_COMMENT` to alter the comment line in the escript header
+* `ESCRIPT_BEAMS` for the paths searched for `*.beam` files to include
+* `ESCRIPT_SYS_CONFIG` defaults to `rel/sys.config`
+* `ESCRIPT_EMU_ARGS` for the parameters used to start the VM
+* `ESCRIPT_SHEBANG` for the line used by your shell to start `escript`
+* `ESCRIPT_STATIC` for non-beam directories to be included as well
+
+Refer to http://www.erlang.org/doc/man/escript.html for
+more information on `escript` functionality in general.
+
Relx plugin
-----------