build.rb
# generates build rules for protobufs. Rules that target dst are generated
# by scanning src.
generates build rules for protobufs. Rules that target dst are generated
by scanning src.
generates build rules for protobufs . Rules that target dst are generated by scanning src .
def protoc(src)
  FileList["#{src}/**/*.proto"].map do |src_path|
    dst_path = src_path.sub(/\.proto/, '.pb.go')
    file dst_path => [src_path] do
      sh 'protoc', "-I#{src}", src_path, "--go_out=#{src}"
    end
    dst_path
  end
end
def protoc ( src ) FileList [ "#{src}/**/*.proto" ] . map do | src_path | dst_path = src_path . sub ( / \. proto / , '.pb.go' ) file dst_path => [ src_path ] do sh 'protoc' , "-I#{src}" , src_path , "--go_out=#{src}" end dst_path end end
generates build rules for protobufs.
generates build rules for protobufs .
src
<not_specific>