From 9d653f906d24e45a43e0d4ee06d3bf18d7fa85a8 Mon Sep 17 00:00:00 2001 From: redpine50 Date: Thu, 8 May 2014 02:07:10 +0900 Subject: Update rebar_utils.erl On windows, bootstrap.bat failed with next error. Command 'escriptize' not understood or not applicable This happens because the drive name in path got from rebar_utils:get_cwd() and base_dir(Config) are different case. Made the drive name the same lowercase using filename:absname(). --- src/rebar_utils.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 289f918..d39a394 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -316,7 +316,8 @@ processing_base_dir(Config) -> processing_base_dir(Config, Cwd). processing_base_dir(Config, Dir) -> - Dir =:= base_dir(Config). + Dir_abs = filename:absname(Dir), + Dir_abs =:= filename:absname(base_dir(Config)). %% ==================================================================== %% Internal functions -- cgit v1.1 From 8cc5a6abdcd03e0645acf74f45ceb66a5d6cb1c1 Mon Sep 17 00:00:00 2001 From: redpine50 Date: Sat, 10 May 2014 14:09:54 +0900 Subject: Do not wrap base_dir with filename:absname() base_dir() returns already filename:absname()'ed path. --- src/rebar_utils.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index d39a394..517ac33 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -316,8 +316,8 @@ processing_base_dir(Config) -> processing_base_dir(Config, Cwd). processing_base_dir(Config, Dir) -> - Dir_abs = filename:absname(Dir), - Dir_abs =:= filename:absname(base_dir(Config)). + AbsDir = filename:absname(Dir), + AbsDir =:= base_dir(Config). %% ==================================================================== %% Internal functions -- cgit v1.1