- install MSYSGIT and add
<gitdir>/bin/cmd
to path - install Erlang/OTP minimum R15B02 (fixes escript swallowing stdout on exit, and adds line numbers to errors)
- add Erlang/OTP to path
git clone git://github.com/basho/rebar.git
cd rebar
bootstrap
- open an editor capable of editing binary / hex without fudging line endings like http://textpad.com/
- remove the first line
#!/usr/bin/env escript
- replace with
@echo off & setlocal & path=%~dp0;%path%; & escript.exe "%~dpn0.cmd" %* & goto :eof
- save & you're done