Permalink
Browse files

generate perl bindings

  • Loading branch information...
1 parent c6e3cf3 commit ead3847341765ed62e13bb507f1fa6707d26a0bb @acme committed Jul 9, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 bin/build.pl
View
@@ -16,6 +16,7 @@
my $cassandra_class
= dir( cwd, 'cassandra-trunk', 'build', 'classes', 'org', 'apache',
'cassandra', 'service', 'CassandraDaemon.class' );
+my $gen_perl_dir = dir( cwd, 'gen-perl' );
unless ( -d $thrift_trunk_dir ) {
say 'Fetching Thrift';
@@ -66,3 +67,10 @@
system "ant";
die 'Failed to build' unless -f $cassandra_class;
}
+
+unless ( -d $gen_perl_dir ) {
+ say 'Generating Perl bindings';
+ system
+ "$thrift_installed_dir/bin/thrift --gen perl $cassandra_trunk_dir/interface/cassandra.thrift";
+ die 'Failed to generate' unless -d $gen_perl_dir;
+}

0 comments on commit ead3847

Please sign in to comment.