File tree Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,21 @@ readlink_f () {
35
35
fi
36
36
}
37
37
38
+ MODE=" elixir"
38
39
ERL=" "
39
40
I=1
40
41
41
42
while [ $I -le $# ]; do
42
43
S=1
43
44
eval " PEEK=\$ {$I }"
44
45
case " $PEEK " in
45
- -v|--compile|--no-halt|+iex|+compile)
46
+ +iex)
47
+ MODE=" iex"
48
+ ;;
49
+ +elixirc)
50
+ MODE=" elixirc"
51
+ ;;
52
+ -v|--compile|--no-halt)
46
53
;;
47
54
-e|-r|-pr|-pa|-pz|--remsh|--app)
48
55
S=2
77
84
78
85
SELF=$( readlink_f " $0 " )
79
86
SCRIPT_PATH=$( dirname " $SELF " )
80
- if [ " $ELIXIR_NO_CLI " != " 1 " ]; then ERL=" $ERL -s elixir start_cli" ; fi
87
+ if [ " $MODE " != " iex " ]; then ERL=" $ERL -s elixir start_cli" ; fi
81
88
82
89
if [ -z " $ERL_PATH " ]; then
83
90
if [ -f " $SCRIPT_PATH /../releases/RELEASES" ] && [ -f " $SCRIPT_PATH /erl" ]; then
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ readlink_f () {
26
26
27
27
SELF=$( readlink_f " $0 " )
28
28
SCRIPT_PATH=$( dirname " $SELF " )
29
- exec " $SCRIPT_PATH " /elixir +compile " $@ "
29
+ exec " $SCRIPT_PATH " /elixir +elixirc " $@ "
Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ echo ** Options marked with (*) can be given more than once
20
20
echo ** Options given after -- are passed down to the executed code
21
21
echo ** Options can be passed to the erlang runtime using ELIXIR_ERL_OPTS" >&2
22
22
:run
23
- call " %~dp0 \elixir.bat" +compile %*
23
+ call " %~dp0 \elixir.bat" +elixirc %*
Original file line number Diff line number Diff line change @@ -39,4 +39,4 @@ readlink_f () {
39
39
40
40
SELF=$( readlink_f " $0 " )
41
41
SCRIPT_PATH=$( dirname " $SELF " )
42
- ELIXIR_NO_CLI=1 exec " $SCRIPT_PATH " /elixir --no-halt --erl " -user Elixir.IEx.CLI" +iex " $@ "
42
+ exec " $SCRIPT_PATH " /elixir --no-halt --erl " -user Elixir.IEx.CLI" +iex " $@ "
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ defmodule Kernel.CLI do
171
171
{ config , t }
172
172
end
173
173
174
- defp process_argv ( [ "+compile " | t ] , config ) do
174
+ defp process_argv ( [ "+elixirc " | t ] , config ) do
175
175
process_compiler t , config
176
176
end
177
177
You can’t perform that action at this time.
0 commit comments