Skip to content

Commit

Permalink
Merge pull request #81 from evanmiller/em-protobuffs
Browse files Browse the repository at this point in the history
Recursively search "src" for .proto files
  • Loading branch information
dizzyd committed Jun 6, 2011
2 parents 7ac00a7 + f389e79 commit 719c9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rebar_protobuffs_compiler.erl
Expand Up @@ -36,7 +36,7 @@
%% ===================================================================

compile(_Config, _AppFile) ->
case filelib:wildcard("src/*.proto") of
case rebar_utils:find_files("src", ".*\\.proto$") of
[] ->
ok;
FoundFiles ->
Expand All @@ -60,7 +60,7 @@ compile(_Config, _AppFile) ->

clean(_Config, _AppFile) ->
%% Get a list of generated .beam and .hrl files and then delete them
Protos = filelib:wildcard("src/*.proto"),
Protos = rebar_utils:find_files("src", ".*\\.proto$"),
BeamFiles = [fq_beam_file(F) || F <- Protos],
HrlFiles = [fq_hrl_file(F) || F <- Protos],
Targets = BeamFiles ++ HrlFiles,
Expand Down

0 comments on commit 719c9a5

Please sign in to comment.