diff options
| author | Robin Edwards <robin.ge@gmail.com> | 2011-04-20 14:38:43 +0100 |
|---|---|---|
| committer | Robin Edwards <robin.ge@gmail.com> | 2011-04-20 14:38:43 +0100 |
| commit | 79bea382fd2c0753ca9ace79a11bb74c9a1d722b (patch) | |
| tree | bde42a47792a27e0a863ee527b88c8c24258f7e9 /pbc/compile_pbc.pl | |
| parent | Merge remote branch 'simon/fix_link_encoding' (diff) | |
| download | net-riak-79bea382fd2c0753ca9ace79a11bb74c9a1d722b.tar.gz | |
merged pbc branch to master
Diffstat (limited to 'pbc/compile_pbc.pl')
| -rw-r--r-- | pbc/compile_pbc.pl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pbc/compile_pbc.pl b/pbc/compile_pbc.pl new file mode 100644 index 0000000..5134cc5 --- /dev/null +++ b/pbc/compile_pbc.pl @@ -0,0 +1,21 @@ +#!/bin/env perl +use 5.01; +use strict; +use warnings; +use Google::ProtocolBuffers; + +my $pbc_definition = "pbc/riakclient.proto"; +my $output_file = "lib/Net/Riak/Transport/Message.pm"; + +say "Compiling Protocol Buffers definition.."; + +Google::ProtocolBuffers->parsefile( + $pbc_definition, { + generate_code => $output_file, + create_accessors => 1 + } +); + +say "done."; + +exit; |
