3450 magnus.blaudd@stripped 2011-06-30 [merge]
Merge
added:
storage/ndb/compile-cluster
modified:
storage/ndb/Makefile.am
3449 Jonas Oreland 2011-06-29
ndb - forgot double version in bump
modified:
configure.in
=== modified file 'storage/ndb/Makefile.am'
--- a/storage/ndb/Makefile.am 2011-04-07 19:57:33 +0000
+++ b/storage/ndb/Makefile.am 2011-06-30 11:30:43 +0000
@@ -15,7 +15,7 @@
SUBDIRS = include src tools . @ndb_opt_subdirs@
DIST_SUBDIRS = src tools include test docs
-EXTRA_DIST = config ndbapi-examples plug.in
+EXTRA_DIST = config ndbapi-examples plug.in compile-cluster
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
include $(top_srcdir)/storage/ndb/config/common.mk.am
=== added file 'storage/ndb/compile-cluster'
--- a/storage/ndb/compile-cluster 1970-01-01 00:00:00 +0000
+++ b/storage/ndb/compile-cluster 2011-06-30 11:30:43 +0000
@@ -0,0 +1,92 @@
+#!/usr/bin/perl
+
+# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+# -*- cperl -*-
+#
+# MySQL Cluster compile script to bridge the gap between
+# different build systems in different versions of MySQL Server
+#
+# This script is intended for internal use
+#
+use strict;
+use Cwd 'abs_path';
+use File::Basename;
+use Getopt::Long;
+
+# Only add the command line options handled by this script,
+# thus acting like a filter and passing all other arguments
+# straight through
+my $opt_debug;
+Getopt::Long::Configure("pass_through");
+GetOptions(
+
+ # Build MySQL Server and NDB with debug
+ 'debug' => \$opt_debug,
+
+
+) or exit(1);
+
+# Find source root directory, assume this script is
+# in <srcroot>/storage/ndb/
+my $srcdir = dirname(dirname(dirname(abs_path($0))));
+die unless -d $srcdir; # Sanity check that the srcdir exist
+
+#
+# Build MySQL autotools
+#
+{
+ cmd("$srcdir/BUILD/autorun.sh");
+}
+
+#
+# Configure
+#
+{
+ my @args;
+ push(@args, "$srcdir/configure");
+
+ # MySQL Server options
+ push(@args, "--with-ssl");
+
+ if ($opt_debug)
+ {
+ push(@args, "--with-debug");
+ }
+
+ # NDB options
+ push(@args, "--with-plugin-ndbcluster");
+ push(@args, "--with-ndb-test");
+
+ cmd($^X, @args, @ARGV);
+}
+
+#
+# Build
+#
+{
+ cmd("make -C $srcdir");
+}
+
+sub cmd {
+ my ($cmd, @a)= @_;
+ print "compile-cluster: calling '$cmd ", join(' ', @a), "'\n";
+ system($cmd, @a)
+ and print("command failed: $!\n")
+ and exit(1);
+}
+
+exit(0);
No bundle (reason: useless for push emails).
| Thread |
|---|
| • bzr push into mysql-5.1-telco-6.3 branch (magnus.blaudd:3449 to 3450) | magnus.blaudd | 4 Jul |