aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_cmd_args.erl
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2015-01-14 16:26:07 -0800
committerJordan Wilberding <[email protected]>2015-01-14 16:26:07 -0800
commit9fc9a2f6556d8e86633c87a29db7dc9419005c48 (patch)
tree7770c070a3140fa288f5c89300d4845cec71802d /src/rlx_cmd_args.erl
parentab85c2365ad346d77aa425507df75733e4af01d8 (diff)
parent2dc924a4728177987c3e74f5c1e28d4b9fbc8e90 (diff)
downloadrelx-9fc9a2f6556d8e86633c87a29db7dc9419005c48.tar.gz
relx-9fc9a2f6556d8e86633c87a29db7dc9419005c48.tar.bz2
relx-9fc9a2f6556d8e86633c87a29db7dc9419005c48.zip
Merge pull request #294 from tsloughter/tar_system_libs
remove system libs from tarball if set to false
Diffstat (limited to 'src/rlx_cmd_args.erl')
-rw-r--r--src/rlx_cmd_args.erl12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl
index 44fd226..20ea3a9 100644
--- a/src/rlx_cmd_args.erl
+++ b/src/rlx_cmd_args.erl
@@ -244,8 +244,16 @@ create(vm_args, Opts) ->
VmArgs = proplists:get_value(vm_args, Opts, undefined),
{vm_args, VmArgs};
create(system_libs, Opts) ->
- SystemLibs = proplists:get_value(system_libs, Opts, undefined),
- {system_libs, SystemLibs};
+ case proplists:get_value(system_libs, Opts, true) of
+ SystemLibs when SystemLibs =:= true
+ ; SystemLibs =:= "true" ->
+ {system_libs, true};
+ SystemLibs when SystemLibs =:= false
+ ; SystemLibs =:= "false" ->
+ {system_libs, false};
+ SystemLibsDir when is_list(SystemLibsDir) ->
+ {system_libs, SystemLibsDir}
+ end;
create(upfrom, Opts) ->
case proplists:get_value(upfrom, Opts, undefined) of
undefined ->