mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Remove generation of ps1 script (no longer needed)
This commit is contained in:
parent
79a580200d
commit
cbfabd6073
1 changed files with 1 additions and 10 deletions
11
bootstrap
11
bootstrap
|
@ -132,18 +132,9 @@ vcs_info([{Id, Dir, Cmd} | Rest]) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
write_windows_scripts() ->
|
write_windows_scripts() ->
|
||||||
PowershellScript=
|
|
||||||
"$basedir = Split-Path -Parent $MyInvocation.MyCommand.Path\r\n"
|
|
||||||
"$rebar = Join-Path $basedir \"rebar\"\r\n"
|
|
||||||
"escript.exe $rebar $args\r\n",
|
|
||||||
CmdScript=
|
CmdScript=
|
||||||
"@echo off\r\n"
|
"@echo off\r\n"
|
||||||
"setlocal\r\n"
|
"setlocal\r\n"
|
||||||
"set rebarscript=%~f0\r\n"
|
"set rebarscript=%~f0\r\n"
|
||||||
"escript.exe \"%rebarscript:.cmd=%\" %*\r\n",
|
"escript.exe \"%rebarscript:.cmd=%\" %*\r\n",
|
||||||
ok = file:write_file("rebar.cmd", CmdScript),
|
ok = file:write_file("rebar.cmd", CmdScript).
|
||||||
UTF16BE = {utf16, big},
|
|
||||||
ok = file:write_file("rebar.ps1",
|
|
||||||
[unicode:encoding_to_bom(UTF16BE),
|
|
||||||
unicode:characters_to_binary(PowershellScript,
|
|
||||||
utf8, UTF16BE)]).
|
|
||||||
|
|
Loading…
Reference in a new issue