summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authoralisdair sullivan <alisdairsullivan@yahoo.ca>2017-02-27 09:32:29 -0600
committerGitHub <noreply@github.com>2017-02-27 09:32:29 -0600
commit55b4b761af69f553bf482f403788e0edd28165e2 (patch)
tree8b3e0f1b5bba61c30b226c527c4d739276ebe60d /bootstrap
parenta4df4ece160ceba41ad2a53395cebb97d6939130 (diff)
parente6193b49036c5c3332cc47db569864dffeabb4d8 (diff)
Merge pull request #1494 from ferd/escript-generate-cmd-win32
Windows escripts get cmd autogenerated
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap24
1 files changed, 1 insertions, 23 deletions
diff --git a/bootstrap b/bootstrap
index 8b9b001..b797b6e 100755
--- a/bootstrap
+++ b/bootstrap
@@ -52,21 +52,7 @@ main(_) ->
rebar3:run(["escriptize"]),
%% Done with compile, can turn back on error logger
- error_logger:tty(true),
-
- %% Finally, update executable perms for our script on *nix,
- %% or write out script files on win32.
- ec_file:copy("_build/default/bin/rebar3", "./rebar3"),
- case os:type() of
- {unix,_} ->
- [] = os:cmd("chmod u+x rebar3"),
- ok;
- {win32,_} ->
- write_windows_scripts(),
- ok;
- _ ->
- ok
- end.
+ error_logger:tty(true).
default_registry_file() ->
{ok, [[Home]]} = init:get_argument(home),
@@ -305,14 +291,6 @@ reset_env() ->
application:unload(rebar),
application:load(rebar).
-write_windows_scripts() ->
- CmdScript=
- "@echo off\r\n"
- "setlocal\r\n"
- "set rebarscript=%~f0\r\n"
- "escript.exe \"%rebarscript:.cmd=%\" %*\r\n",
- ok = file:write_file("rebar3.cmd", CmdScript).
-
get_deps() ->
case file:consult("rebar.lock") of
{ok, [[]]} ->