Loading BitKeeper/etc/logging_ok +2 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ gweir@build.mysql.com gweir@work.mysql.com harrison@mysql.com harry@corona.lordblink.com hartmut@mysql.com heikki@donna.mysql.fi heikki@hundin.mysql.fi heikki@rescue. Loading Loading @@ -96,6 +97,7 @@ lenz@mysql.com magnus@neptunus.(none) magnus@shellback.(none) marko@hundin.mysql.fi matt@mysql.com miguel@hegel.(none) miguel@hegel.br miguel@hegel.local Loading Build-tools/mysql-copyright +74 −41 Original line number Diff line number Diff line #!/usr/bin/perl -i #!/usr/bin/perl -wi # Untar a MySQL distribution, change the copyright texts, # pack it up again to a given directory $VER="1.3"; $VER="1.4"; use Cwd; use File::Basename; Loading Loading @@ -104,7 +104,7 @@ sub main unlink("$destdir/COPYING", "$destdir/EXCEPTIONS-CLIENT"); copy("$WD/Docs/MySQLEULA.txt", "$destdir"); # remove readline, bdb subdirs and update 'configure' # remove subdirectories 'bdb', 'cmd-line-utils/readline' my @extra_fat= ('bdb', 'cmd-line-utils/readline'); foreach my $fat (@extra_fat) Loading @@ -119,6 +119,9 @@ sub main # fix LICENSE tag in include/mysql_version.h &fix_mysql_version(); # apply "autotools" - must be last to ensure proper timestamps &run_autotools(); # rename the directory with new distribution name chdir("$WD/$dir"); print "renaming $destdir $newdistname\n" if $opt_verbose; Loading Loading @@ -150,6 +153,7 @@ sub main #### sub fix_mysql_version { my $cwd= getcwd(); chdir("$destdir"); my $header_file= (-f 'include/mysql_version.h.in')? 'include/mysql_version.h.in' : 'include/mysql_version.h'; Loading @@ -170,42 +174,71 @@ sub fix_mysql_version #### This function will remove unwanted parts of a src tree for the mysqlcom #### distributions. #### sub trim_the_fat { my $the_fat= shift; my $cwd= getcwd(); system("rm -rf $destdir/${the_fat}"); chdir("$destdir"); if ( -d "${the_fat}" ) { system("rm -rf ${the_fat}"); if (!$win_flag) { chdir("$destdir"); unlink ("configure") or die "Can't delete $destdir/configure: $!\n"; open(CONFIGURE,"<configure.in") or die "Unable to open configure.in for read: $!\n"; open(CONFIG_IN,"<configure.in") or die "Unable to open configure.in for read: $!\n"; undef $/; my $configure= <CONFIGURE>; close(CONFIGURE); my $config_in= <CONFIG_IN>; close(CONFIG_IN); # # If $the_fat Makefile line closes the parenthesis, then # replace that line with just the closing parenthesis. # if ($configure=~ m|${the_fat}/Makefile\)\n?|) if ($config_in=~ m|${the_fat}/Makefile\)\n?|) { $configure=~ s|${the_fat}/Makefile(\)\n?)|$1|; $config_in=~ s|${the_fat}/Makefile(\)\n?)|$1|; } # # Else just delete the line # else { $configure=~ s|${the_fat}/Makefile dnl\n?||; $config_in=~ s|${the_fat}/Makefile dnl\n?||; } open(CONFIGURE,">configure.in") or die "Unable to open configure.in for write: $!\n"; print CONFIGURE $configure; close(CONFIGURE); open(CONFIG_IN,">configure.in") or die "Unable to open configure.in for write: $!\n"; print CONFIG_IN $config_in; close(CONFIG_IN); } } chdir("$cwd"); } #### #### This function will run the autotools on the reduced source tree. #### sub run_autotools { my $cwd= getcwd(); if (!$win_flag) { chdir("$destdir"); unlink ("configure") or die "Can't delete $destdir/configure: $!\n"; # File "configure.in" has already been modified by "trim_the_fat()" `aclocal && autoheader && aclocal && automake && autoconf`; die "'./configure' was not produced!" unless (-f "configure"); if (-d "autom4te.cache") { print "Trying to delete autom4te.cache dir\n" if $opt_verbose; system("rm -rf autom4te.cache") or print "Unable to delete autom4te.cache dir: $!\n"; } chdir("$cwd"); } } Loading Build-tools/mysql-copyright-2 +1 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ sub add_copyright $ARGV =~ /\.cc$/ || $ARGV =~ /\.h$/ || $ARGV =~ /\.cpp$/ || $ARGV =~ /\.txt$/ || $ARGV =~ /\.yy$/) { $start_copyright="/* "; Loading Makefile.am +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ SUBDIRS = . include @docs_dirs@ @zlib_dir@ \ DIST_SUBDIRS = . include @docs_dirs@ zlib \ @readline_topdir@ sql-common \ @thread_dirs@ pstack @sql_client_dirs@ \ @sql_server_dirs@ scripts man tests SSL\ @sql_server_dirs@ scripts @man_dirs@ tests SSL\ BUILD netware os2 @libmysqld_dirs@ \ @bench_dirs@ support-files @fs_dirs@ @tools_dirs@ Loading acinclude.m4 +21 −2 Original line number Diff line number Diff line Loading @@ -976,7 +976,7 @@ AC_DEFUN([MYSQL_FIND_OPENSSL], [ AC_DEFUN([MYSQL_CHECK_OPENSSL], [ AC_MSG_CHECKING(for OpenSSL) AC_ARG_WITH([openssl], [ --with-openssl Include the OpenSSL support], [ --with-openssl[=DIR] Include the OpenSSL support], [openssl="$withval"], [openssl=no]) Loading @@ -994,8 +994,19 @@ AC_MSG_CHECKING(for OpenSSL) [openssl_libs="$withval"], [openssl_libs=""]) if test "$openssl" = "yes" if test "$openssl" != "no" then if test "$openssl" != "yes" then if test -z "$openssl_includes" then openssl_includes="$openssl/include" fi if test -z "$openssl_libs" then openssl_libs="$openssl/lib" fi fi MYSQL_FIND_OPENSSL([$openssl_includes], [$openssl_libs]) #force VIO use vio_dir="vio" Loading Loading @@ -1031,6 +1042,14 @@ AC_MSG_CHECKING(for OpenSSL) NON_THREADED_CLIENT_LIBS="$NON_THREADED_CLIENT_LIBS $openssl_libs" else AC_MSG_RESULT(no) if test ! -z "$openssl_includes" then AC_MSG_ERROR(Can't have --with-openssl-includes without --with-openssl); fi if test ! -z "$openssl_libs" then AC_MSG_ERROR(Can't have --with-openssl-libs without --with-openssl); fi fi AC_SUBST(openssl_libs) AC_SUBST(openssl_includes) Loading Loading
BitKeeper/etc/logging_ok +2 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ gweir@build.mysql.com gweir@work.mysql.com harrison@mysql.com harry@corona.lordblink.com hartmut@mysql.com heikki@donna.mysql.fi heikki@hundin.mysql.fi heikki@rescue. Loading Loading @@ -96,6 +97,7 @@ lenz@mysql.com magnus@neptunus.(none) magnus@shellback.(none) marko@hundin.mysql.fi matt@mysql.com miguel@hegel.(none) miguel@hegel.br miguel@hegel.local Loading
Build-tools/mysql-copyright +74 −41 Original line number Diff line number Diff line #!/usr/bin/perl -i #!/usr/bin/perl -wi # Untar a MySQL distribution, change the copyright texts, # pack it up again to a given directory $VER="1.3"; $VER="1.4"; use Cwd; use File::Basename; Loading Loading @@ -104,7 +104,7 @@ sub main unlink("$destdir/COPYING", "$destdir/EXCEPTIONS-CLIENT"); copy("$WD/Docs/MySQLEULA.txt", "$destdir"); # remove readline, bdb subdirs and update 'configure' # remove subdirectories 'bdb', 'cmd-line-utils/readline' my @extra_fat= ('bdb', 'cmd-line-utils/readline'); foreach my $fat (@extra_fat) Loading @@ -119,6 +119,9 @@ sub main # fix LICENSE tag in include/mysql_version.h &fix_mysql_version(); # apply "autotools" - must be last to ensure proper timestamps &run_autotools(); # rename the directory with new distribution name chdir("$WD/$dir"); print "renaming $destdir $newdistname\n" if $opt_verbose; Loading Loading @@ -150,6 +153,7 @@ sub main #### sub fix_mysql_version { my $cwd= getcwd(); chdir("$destdir"); my $header_file= (-f 'include/mysql_version.h.in')? 'include/mysql_version.h.in' : 'include/mysql_version.h'; Loading @@ -170,42 +174,71 @@ sub fix_mysql_version #### This function will remove unwanted parts of a src tree for the mysqlcom #### distributions. #### sub trim_the_fat { my $the_fat= shift; my $cwd= getcwd(); system("rm -rf $destdir/${the_fat}"); chdir("$destdir"); if ( -d "${the_fat}" ) { system("rm -rf ${the_fat}"); if (!$win_flag) { chdir("$destdir"); unlink ("configure") or die "Can't delete $destdir/configure: $!\n"; open(CONFIGURE,"<configure.in") or die "Unable to open configure.in for read: $!\n"; open(CONFIG_IN,"<configure.in") or die "Unable to open configure.in for read: $!\n"; undef $/; my $configure= <CONFIGURE>; close(CONFIGURE); my $config_in= <CONFIG_IN>; close(CONFIG_IN); # # If $the_fat Makefile line closes the parenthesis, then # replace that line with just the closing parenthesis. # if ($configure=~ m|${the_fat}/Makefile\)\n?|) if ($config_in=~ m|${the_fat}/Makefile\)\n?|) { $configure=~ s|${the_fat}/Makefile(\)\n?)|$1|; $config_in=~ s|${the_fat}/Makefile(\)\n?)|$1|; } # # Else just delete the line # else { $configure=~ s|${the_fat}/Makefile dnl\n?||; $config_in=~ s|${the_fat}/Makefile dnl\n?||; } open(CONFIGURE,">configure.in") or die "Unable to open configure.in for write: $!\n"; print CONFIGURE $configure; close(CONFIGURE); open(CONFIG_IN,">configure.in") or die "Unable to open configure.in for write: $!\n"; print CONFIG_IN $config_in; close(CONFIG_IN); } } chdir("$cwd"); } #### #### This function will run the autotools on the reduced source tree. #### sub run_autotools { my $cwd= getcwd(); if (!$win_flag) { chdir("$destdir"); unlink ("configure") or die "Can't delete $destdir/configure: $!\n"; # File "configure.in" has already been modified by "trim_the_fat()" `aclocal && autoheader && aclocal && automake && autoconf`; die "'./configure' was not produced!" unless (-f "configure"); if (-d "autom4te.cache") { print "Trying to delete autom4te.cache dir\n" if $opt_verbose; system("rm -rf autom4te.cache") or print "Unable to delete autom4te.cache dir: $!\n"; } chdir("$cwd"); } } Loading
Build-tools/mysql-copyright-2 +1 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ sub add_copyright $ARGV =~ /\.cc$/ || $ARGV =~ /\.h$/ || $ARGV =~ /\.cpp$/ || $ARGV =~ /\.txt$/ || $ARGV =~ /\.yy$/) { $start_copyright="/* "; Loading
Makefile.am +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ SUBDIRS = . include @docs_dirs@ @zlib_dir@ \ DIST_SUBDIRS = . include @docs_dirs@ zlib \ @readline_topdir@ sql-common \ @thread_dirs@ pstack @sql_client_dirs@ \ @sql_server_dirs@ scripts man tests SSL\ @sql_server_dirs@ scripts @man_dirs@ tests SSL\ BUILD netware os2 @libmysqld_dirs@ \ @bench_dirs@ support-files @fs_dirs@ @tools_dirs@ Loading
acinclude.m4 +21 −2 Original line number Diff line number Diff line Loading @@ -976,7 +976,7 @@ AC_DEFUN([MYSQL_FIND_OPENSSL], [ AC_DEFUN([MYSQL_CHECK_OPENSSL], [ AC_MSG_CHECKING(for OpenSSL) AC_ARG_WITH([openssl], [ --with-openssl Include the OpenSSL support], [ --with-openssl[=DIR] Include the OpenSSL support], [openssl="$withval"], [openssl=no]) Loading @@ -994,8 +994,19 @@ AC_MSG_CHECKING(for OpenSSL) [openssl_libs="$withval"], [openssl_libs=""]) if test "$openssl" = "yes" if test "$openssl" != "no" then if test "$openssl" != "yes" then if test -z "$openssl_includes" then openssl_includes="$openssl/include" fi if test -z "$openssl_libs" then openssl_libs="$openssl/lib" fi fi MYSQL_FIND_OPENSSL([$openssl_includes], [$openssl_libs]) #force VIO use vio_dir="vio" Loading Loading @@ -1031,6 +1042,14 @@ AC_MSG_CHECKING(for OpenSSL) NON_THREADED_CLIENT_LIBS="$NON_THREADED_CLIENT_LIBS $openssl_libs" else AC_MSG_RESULT(no) if test ! -z "$openssl_includes" then AC_MSG_ERROR(Can't have --with-openssl-includes without --with-openssl); fi if test ! -z "$openssl_libs" then AC_MSG_ERROR(Can't have --with-openssl-libs without --with-openssl); fi fi AC_SUBST(openssl_libs) AC_SUBST(openssl_includes) Loading