You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/06/01 22:41:57 UTC

[03/50] rebar commit: updated refs/heads/import to e9f62c4

Local corrections on string processing:

* Corrected regexp: `[x|y]` -> `[xy]`.
* Used an re:replace/4 option instead of multiple IOlist functions.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/e3d2142d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/e3d2142d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/e3d2142d

Branch: refs/heads/import
Commit: e3d2142df51f50cc79797d3950f75e7d77a37a82
Parents: 9080288
Author: Pierre Fenoll <pi...@gmail.com>
Authored: Fri Nov 22 15:23:54 2013 +0000
Committer: Pierre Fenoll <pi...@gmail.com>
Committed: Fri Jun 13 02:22:26 2014 +0200

----------------------------------------------------------------------
 src/rebar_erlc_compiler.erl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/e3d2142d/src/rebar_erlc_compiler.erl
----------------------------------------------------------------------
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 5f541d9..1de9cb2 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -119,8 +119,7 @@ clean(Config, _AppFile) ->
 
     YrlFiles = rebar_utils:find_files("src", "^.*\\.[x|y]rl\$"),
     rebar_file_utils:delete_each(
-      [ binary_to_list(iolist_to_binary(re:replace(F, "\\.[x|y]rl$", ".erl")))
-        || F <- YrlFiles ]),
+      [re:replace(F, "\\.[xy]rl$", ".erl", [{return,list}]) || F <- YrlFiles]),
 
     %% Delete the build graph, if any
     rebar_file_utils:rm_rf(erlcinfo_file(Config)),