diff options
author | Jordan Wilberding <[email protected]> | 2016-01-31 07:24:21 -0800 |
---|---|---|
committer | Jordan Wilberding <[email protected]> | 2016-01-31 07:24:21 -0800 |
commit | 527b8e13a4d7b4c4ee6519eb413ff816a049ab59 (patch) | |
tree | eff1ca08cb9376fd0464f5ca91d6e0e34bacc653 /src/rlx_prv_assembler.erl | |
parent | 869127113f3ea2e76636ff9b570e6e139c03c97d (diff) | |
parent | 6af090d07f678caf1a25730a88eafe64cf9adaff (diff) | |
download | relx-527b8e13a4d7b4c4ee6519eb413ff816a049ab59.tar.gz relx-527b8e13a4d7b4c4ee6519eb413ff816a049ab59.tar.bz2 relx-527b8e13a4d7b4c4ee6519eb413ff816a049ab59.zip |
Merge pull request #442 from tsloughter/master
use list comp instead of ec_plists for copy directory
Diffstat (limited to 'src/rlx_prv_assembler.erl')
-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 c433ca7..8f86dde 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), |