summaryrefslogtreecommitdiff
path: root/rebar.bat
diff options
context:
space:
mode:
authorJuhani Rankimies <juhani@juranki.com>2010-10-26 07:12:26 +0300
committerDave Smith <dizzyd@dizzyd.com>2010-10-27 11:39:12 -0600
commitff5581c44a9b12504c14e9dc092b305d0eeddd8d (patch)
tree63617e586ea79cc54f2edfadf1310432a1d0c2c3 /rebar.bat
parent1da8b9ca93b6d520077e90534abff871a7593d49 (diff)
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.
Diffstat (limited to 'rebar.bat')
-rw-r--r--rebar.bat3
1 files changed, 2 insertions, 1 deletions
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=% %*