diff options
author | Tristan Sloughter <[email protected]> | 2012-12-10 12:19:36 -0800 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2012-12-10 12:19:36 -0800 |
commit | 25483b93b6f179b29742451ac65d367ab3b7ca7e (patch) | |
tree | f1fe9d5c6ddcf6626c84b9121ce1d334d776556e /src/rcl_cmd_args.erl | |
parent | 69e6bcb71b8ce15556621fc94874bce751b50c50 (diff) | |
parent | c3e728afb67101480d0c7b52c51bc522f08fb08f (diff) | |
download | relx-25483b93b6f179b29742451ac65d367ab3b7ca7e.tar.gz relx-25483b93b6f179b29742451ac65d367ab3b7ca7e.tar.bz2 relx-25483b93b6f179b29742451ac65d367ab3b7ca7e.zip |
Merge pull request #16 from ericbmerritt/next
default relcool.config support
Diffstat (limited to 'src/rcl_cmd_args.erl')
-rw-r--r-- | src/rcl_cmd_args.erl | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/rcl_cmd_args.erl b/src/rcl_cmd_args.erl index 68bd9ce..d72bce3 100644 --- a/src/rcl_cmd_args.erl +++ b/src/rcl_cmd_args.erl @@ -75,9 +75,6 @@ format_error({invalid_config_file, Config}) -> io_lib:format("Invalid configuration file specified: ~s", [Config]); format_error({failed_to_parse, Spec}) -> io_lib:format("Unable to parse spec ~s", [Spec]); -format_error({unable_to_create_output_dir, OutputDir}) -> - io_lib:format("Unable to create output directory (possible permissions issue): ~s", - [OutputDir]); format_error({not_directory, Dir}) -> io_lib:format("Library directory does not exist: ~s", [Dir]); format_error({invalid_log_level, LogLevel}) -> @@ -148,17 +145,7 @@ convert_goals([RawSpec | Rest], Acc) -> {ok, rcl_state:cmd_args()} | relcool:error(). create_output_dir(Opts, Acc) -> OutputDir = proplists:get_value(output_dir, Opts, "./_rel"), - case filelib:is_dir(OutputDir) of - false -> - case rcl_util:mkdir_p(OutputDir) of - ok -> - create_lib_dirs(Opts, [{output_dir, OutputDir} | Acc]); - {error, _} -> - ?RCL_ERROR({unable_to_create_output_dir, OutputDir}) - end; - true -> - create_lib_dirs(Opts, [{output_dir, OutputDir} | Acc]) - end. + create_lib_dirs(Opts, [{output_dir, OutputDir} | Acc]). -spec create_lib_dirs([getopt:option()], rcl_state:cmd_args()) -> {ok, rcl_state:cmd_args()} | relcool:error(). |