From 7703e99c8ef26988242907ef3253470317330c8c Mon Sep 17 00:00:00 2001 From: nuex Date: Fri, 21 Feb 2014 15:16:39 -0500 Subject: add templates --- priv/templates/erl_script.dtl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 priv/templates/erl_script.dtl (limited to 'priv/templates/erl_script.dtl') diff --git a/priv/templates/erl_script.dtl b/priv/templates/erl_script.dtl new file mode 100644 index 0000000..261eb6a --- /dev/null +++ b/priv/templates/erl_script.dtl @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +SCRIPT_DIR=`dirname $0` +ROOTDIR=`cd $SCRIPT_DIR/../../ && pwd` +BINDIR=$ROOTDIR/erts-{{ erts_vsn }}/bin +EMU=beam +PROGNAME=`echo $0 | sed 's/.*\\///'` +export EMU +export ROOTDIR +export BINDIR +export PROGNAME +exec \"$BINDIR/erlexec\" ${1+\"$@\"} -- cgit v1.2.3