summaryrefslogtreecommitdiff
path: root/pbc/compile_pbc.pl
diff options
context:
space:
mode:
authorRobin Edwards <robin.ge@gmail.com>2011-04-20 14:38:43 +0100
committerRobin Edwards <robin.ge@gmail.com>2011-04-20 14:38:43 +0100
commit79bea382fd2c0753ca9ace79a11bb74c9a1d722b (patch)
treebde42a47792a27e0a863ee527b88c8c24258f7e9 /pbc/compile_pbc.pl
parentMerge remote branch 'simon/fix_link_encoding' (diff)
downloadnet-riak-79bea382fd2c0753ca9ace79a11bb74c9a1d722b.tar.gz
merged pbc branch to master
Diffstat (limited to '')
-rw-r--r--pbc/compile_pbc.pl21
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;