From ff5581c44a9b12504c14e9dc092b305d0eeddd8d Mon Sep 17 00:00:00 2001 From: Juhani Rankimies Date: Tue, 26 Oct 2010 07:12:26 +0300 Subject: [PATCH] Improve rebar.bat Add support for invoking rebar from other than current directory. For example: ..\rebar create-node nodeid=mysample requires rebar.bar and rebar (escript) to be in the same directory. --- rebar.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rebar.bat b/rebar.bat index 6b97b00..5ac634b 100644 --- a/rebar.bat +++ b/rebar.bat @@ -1,2 +1,3 @@ @echo off -escript.exe rebar %* +set rebarscript=%0 +escript.exe %rebarscript:.bat=% %*