20 lines
698 B
Bash
Executable File
20 lines
698 B
Bash
Executable File
#!/bin/sh
|
|
if [ $# -eq 0 ]; then
|
|
echo "Usage: `basename $0` [switches] [files]
|
|
|
|
-v Prints version and exit
|
|
-e \"command\" Evaluates the given command (may be used more than once)
|
|
-f \"command\" The same as -e, but executes at the end (may be used more than once)
|
|
|
|
* Each file passed will be loaded and executed.
|
|
|
|
* Options given after files are passed down to the executed file.
|
|
|
|
* Options can be passed to the erlang compiler by using ELIXIR_ERL_OPTS." >&2
|
|
exit 1
|
|
fi
|
|
|
|
SCRIPT_PATH=`dirname $0`
|
|
ELIXIR_PATH=`cd $SCRIPT_PATH; cd ..; pwd`
|
|
export ELIXIR_PATH=$ELIXIR_PATH
|
|
erl -I $ELIXIR_PATH/include -noshell -pa $ELIXIR_PATH/ebin $ELIXIR_ERL_OPTS -s elixir boot -extra "$@" |