diff options
author | Tristan Sloughter <[email protected]> | 2016-01-30 11:22:03 -0600 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2016-01-30 11:22:03 -0600 |
commit | 6af090d07f678caf1a25730a88eafe64cf9adaff (patch) | |
tree | de125d509ea0061518f76a87e3b5d923df7e966f /src | |
parent | 5221acdf8f79a26d4438cb26c4215af22ac04400 (diff) | |
download | relx-6af090d07f678caf1a25730a88eafe64cf9adaff.tar.gz relx-6af090d07f678caf1a25730a88eafe64cf9adaff.tar.bz2 relx-6af090d07f678caf1a25730a88eafe64cf9adaff.zip |
use list comp instead of ec_plists for copy directory
Diffstat (limited to 'src')
-rw-r--r-- | src/rlx_prv_assembler.erl | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/rlx_prv_assembler.erl b/src/rlx_prv_assembler.erl index 21d9bd4..2e37fc3 100644 --- a/src/rlx_prv_assembler.erl +++ b/src/rlx_prv_assembler.erl @@ -277,19 +277,18 @@ link_directory(AppDir, TargetDir) -> end. copy_directory(AppDir, TargetDir, IncludeSrc) -> - ec_plists:map(fun(SubDir) -> - copy_dir(AppDir, TargetDir, SubDir) - end, ["ebin", - "include", - "priv", - "lib" | - case IncludeSrc of - true -> - ["src", - "c_src"]; - false -> - [] - end]). + [copy_dir(AppDir, TargetDir, SubDir) + || SubDir <- ["ebin", + "include", + "priv", + "lib" | + case IncludeSrc of + true -> + ["src", + "c_src"]; + false -> + [] + end]]. copy_dir(AppDir, TargetDir, SubDir) -> SubSource = filename:join(AppDir, SubDir), |