summaryrefslogtreecommitdiff
path: root/src/rebar_rel_utils.erl
diff options
context:
space:
mode:
authorShunichi Shinohara <shino.shun@gmail.com>2012-10-20 15:33:22 +0900
committerShunichi Shinohara <shino.shun@gmail.com>2014-03-09 15:54:32 +0900
commit2575bb24da9e5f6fdd1d81b50e2db8d200c046e4 (patch)
tree4d0a30bdd1e37d7ac6a4a9ff416761de60c2f564 /src/rebar_rel_utils.erl
parent12af16eb70a6feca4008b874dda2e80a7555ffa1 (diff)
downloadrebar-2575bb24da9e5f6fdd1d81b50e2db8d200c046e4.tar.gz
Add slim marker file as automatic overlay
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.
%%