diff options
author | unknown <lenz@mysql.com> | 2005-04-13 19:05:31 +0200 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2005-04-13 19:05:31 +0200 |
commit | e621d27c77987aff36758a4923b98d0db187d85e (patch) | |
tree | 2ee3684cbc9ad673ca24d563fb6468347e23caf1 /Build-tools/Do-win-build | |
parent | 7a2a7de28be35e04ac5ee2f01c96d91a353ae3bf (diff) | |
download | mariadb-git-e621d27c77987aff36758a4923b98d0db187d85e.tar.gz |
- Cleanup: removed obsolete build tools (build toolchain is now maintained sepearately)
BitKeeper/deleted/.del-Bootstrap~bfc426bd800ccc3a:
Delete: Build-tools/Bootstrap
BitKeeper/deleted/.del-Do-pkg~5079e47cde0baad8:
Delete: Build-tools/Do-pkg
BitKeeper/deleted/.del-logger.pm~9234101b5b668373:
Delete: Build-tools/logger.pm
BitKeeper/deleted/.del-Do-rpm~c0ef3ebafbf53117:
Delete: Build-tools/Do-rpm
BitKeeper/deleted/.del-cvs-sanity-check~a3c58acf37f27cee:
Delete: Build-tools/cvs-sanity-check
BitKeeper/deleted/.del-Do-all-build-steps~bb7d38f34728ac06:
Delete: Build-tools/Do-all-build-steps
BitKeeper/deleted/.del-Do-local-patch-file~b86e1bfa3b7c13d3:
Delete: Build-tools/Do-local-patch-file
BitKeeper/deleted/.del-Do-linux-build~b3b941454648a285:
Delete: Build-tools/Do-linux-build
BitKeeper/deleted/.del-Do-patch-file~a2e87df5f75fd496:
Delete: Build-tools/Do-patch-file
BitKeeper/deleted/.del-newest~2dd91db13f2ea308:
Delete: Build-tools/newest
BitKeeper/deleted/.del-Do-create-perl-rpms~1f946e7d8560b3d0:
Delete: Build-tools/Do-create-perl-rpms
BitKeeper/deleted/.del-Do-win-build~cb5c5e1df8b3de6:
Delete: Build-tools/Do-win-build
BitKeeper/deleted/.del-my_md5sum~4680250631e4fd9:
Delete: Build-tools/my_md5sum
BitKeeper/deleted/.del-Do-compile~d1a6d7e535befea3:
Delete: Build-tools/Do-compile
BitKeeper/deleted/.del-mysql-copyright~56fc330ae63cfe03:
Delete: Build-tools/mysql-copyright
BitKeeper/deleted/.del-mysql-copyright-2~e73ec01547206fec:
Delete: Build-tools/mysql-copyright-2
Diffstat (limited to 'Build-tools/Do-win-build')
-rwxr-xr-x | Build-tools/Do-win-build | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/Build-tools/Do-win-build b/Build-tools/Do-win-build deleted file mode 100755 index a78b091a737..00000000000 --- a/Build-tools/Do-win-build +++ /dev/null @@ -1,124 +0,0 @@ -#!/usr/bin/perl -w - -use Getopt::Long; - -$opt_help=0; -$opt_tarball=$opt_builddir=$opt_suffix=""; - -GetOptions( - "help", - "tarball=s", - "builddir=s", - "suffix=s" -) || print_help(); - -print_help() if ($opt_help); - -chomp($MSDEV=`which msdev`); - -if (!$opt_builddir) { - $opt_builddir = "/cygdrive/c/mysql-win-build"; -} - -$opt_tarball =~ /(mysql[^\/]*)-win-src\.tar/; -$mysqlver=$1; -$basedir = "$opt_builddir/$mysqlver"; -$scriptdir = `pwd`; - -# Make sure build dir exists -mkdir($opt_builddir); -# Clean out any previous build -system("rm -rf $basedir"); - -# Unpack in the script directory -system("tar -zxvf $opt_tarball"); -# Move to the build directory -system("mv $mysqlver $opt_builddir"); - -if (!chdir($basedir)) -{ - print "Do-win-build error: Could not change to $basedir"; - exit 1; -} - -# Check whether this is a classic edition build -if ($opt_suffix =~ /-classic/) -{ - # Blank out ha_innodb.cpp - chmod 0644, 'sql/ha_innodb.cpp'; - open(OUT, '>', 'sql/ha_innodb.cpp'); - close(OUT); - - # Remove HAVE_INNOBASE_DB from the requisite project files - for $dspfile ('libmysqld/libmysqld.dsp', 'mysqldemb/mysqldemb.dsp', 'mysqlserver/mysqlserver.dsp', 'sql/mysqld.dsp', 'sql/mysqldmax.dsp') - { - open(IN, '<', $dspfile); - open(OUT, '>', "$dspfile.tmp"); - while (readline IN) - { - s/\D \"HAVE_INNOBASE_DB\" //g; - print OUT $_; - } - close(IN); - close(OUT); - unlink $dspfile; - rename "$dspfile.tmp", $dspfile; - } -} - -# Perform compilation -system("\"$MSDEV\" mysql.dsw /MAKE \"ALL\" /OUT $mysqlver-build.log"); - -# Package binary -system("./scripts/make_win_binary_distribution --suffix=$opt_suffix"); - -# Copy log back to script directory -system("cp $mysqlver$suffix-build.log $scriptdir"); - -# Move binary package to script directory -system("mv *.zip $scriptdir"); - -# -# Print a help text message -# -sub print_help -{ - print <<EOF; -Usage: Do-compile-win [options] source-tarball - -Unpacks a Windows source distribution on the local machine and -compiles it using VC++ 6.0. - -This script is intended for Cygwin Perl. You must have a working -MSDEV.EXE in your path for compilation, as well as the following: - -sed -tar (GNU tar) -which - - -Options: - ---help -Print this text. - ---builddir=<dir> -Set the Cygwin path to build under; the tarball will actually -be moved to <builddir>/mysql-<version>/tarball and extracted under -<builddir>/mysql-<version>/build. -Default: /cygdrive/c/mysql-win-build - ---suffix=<suffix> -If specified, the resulting binary will have the specified suffix -in its name. If the suffix is "-classic", the project files will -be stripped of all occurrences of HAVE_INNOBASE_DB and -ha_innodb.cpp will be blanked out, to create classic edition -server binaries. - ---tarball=<file> -Windows source tarball to use for this build. Must be of the form -mysql[com]-x.x.x-win-src.tar.gz (REQUIRED) - -EOF - exit 1; -} |