소스 검색

Merge pull request #81 from evanmiller/em-protobuffs

Recursively search "src" for .proto files
pull/3/head
Dave Smith 14 년 전
부모
커밋
719c9a50c7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/rebar_protobuffs_compiler.erl

+ 2
- 2
src/rebar_protobuffs_compiler.erl 파일 보기

@ -36,7 +36,7 @@
%% ===================================================================
compile(_Config, _AppFile) ->
case filelib:wildcard("src/*.proto") of
case rebar_utils:find_files("src</span>", ".*\\.proto$") of
[] ->
ok;
FoundFiles ->
@ -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</span>", ".*\\.proto$"),
BeamFiles = [fq_beam_file(F) || F <- Protos],
HrlFiles = [fq_hrl_file(F) || F <- Protos],
Targets = BeamFiles ++ HrlFiles,

불러오는 중...
취소
저장