Skip to content

Commit d55afa4

Browse files
author
José Valim
committed
Ensure new IEx works on Windows
1 parent a061528 commit d55afa4

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,17 @@ clean:
9494
$(RELEASE_FLAG): compile
9595
touch $(RELEASE_FLAG)
9696

97-
zip: $(RELEASE_FLAG)
98-
rm -rf v$(VERSION).zip
99-
zip -9 -r v$(VERSION).zip bin CHANGELOG.md LEGAL lib/*/ebin LICENSE README.md rel
100-
10197
docs: $(RELEASE_FLAG)
10298
mkdir -p ebin
10399
rm -rf docs
104100
cp -R -f lib/*/ebin/*.beam ./ebin
105101
bin/elixir ../exdoc/bin/exdoc
106102
rm -rf ebin
107103

104+
release_zip: $(RELEASE_FLAG)
105+
rm -rf v$(VERSION).zip
106+
zip -9 -r v$(VERSION).zip bin CHANGELOG.md LEGAL lib/*/ebin LICENSE README.md rel
107+
108108
release_docs: docs
109109
cd ../elixir-lang.github.com && git checkout master
110110
rm -rf ../elixir-lang.github.com/docs/master

bin/iex.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
call "%~dp0\elixir.bat" --no-halt -e "IEx.CLI.start" %*
2+
call "%~dp0\elixir.bat" --no-halt -e "IEx.start" %*

bin/mix.bat

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
@echo off
2-
call "%~dp0\elixir.bat" "%~dp0\mix" %*
2+
if "%1" == "iex" (
3+
goto iex
4+
) else (
5+
goto elixir
6+
)
7+
:iex
8+
call "%~dp0\iex.bat" -e "Mix.start" -e "Mix.CLI.run" -- %*
9+
:elixir
10+
call "%~dp0\elixir.bat" -e "Mix.start" -e "Mix.CLI.run" -- %*

0 commit comments

Comments
 (0)