summaryrefslogtreecommitdiff
path: root/src/rebar_rel_utils.erl
diff options
context:
space:
mode:
authorJared Morrow <jared@basho.com>2014-05-21 15:36:57 -0600
committerJared Morrow <jared@basho.com>2014-05-21 15:36:57 -0600
commit755c6023d181b4aa87a581ac71e96d2de90a015f (patch)
tree59816f0f73785b5d75904b72036d1e2df3aa7834 /src/rebar_rel_utils.erl
parent618161b8d8b4636a207b299e46592e10bc01d569 (diff)
parent81ed1611af693fb9b4483a55c437a5c9d743966c (diff)
Merge pull request #52 from shino/slim-release-support
Slim release support
Diffstat (limited to 'src/rebar_rel_utils.erl')
-rw-r--r--src/rebar_rel_utils.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rebar_rel_utils.erl b/src/rebar_rel_utils.erl
index 085dbd9..5d99948 100644
--- a/src/rebar_rel_utils.erl
+++ b/src/rebar_rel_utils.erl
@@ -37,6 +37,7 @@
get_rel_file_path/2,
load_config/2,
get_sys_tuple/1,
+ get_excl_lib_tuple/1,
get_target_dir/2,
get_root_dir/2,
get_target_parent_dir/2]).
@@ -144,6 +145,13 @@ get_sys_tuple(ReltoolConfig) ->
end.
%%
+%% Look for the {excl_lib, ...} tuple in sys tuple of the reltool.config file.
+%% Without this present, return false.
+%%
+get_excl_lib_tuple(ReltoolConfig) ->
+ lists:keyfind(excl_lib, 1, element(2, get_sys_tuple(ReltoolConfig))).
+
+%%
%% Look for {target_dir, TargetDir} in the reltool config file; if none is
%% found, use the name of the release as the default target directory.
%%