You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.6 KiB

20 years ago
20 years ago
20 years ago
20 years ago
  1. #!/bin/sh
  2. #
  3. # Copyright (c) 1995, 2009, Innobase Oy. All Rights Reserved.
  4. #
  5. # This program is free software; you can redistribute it and/or modify it under
  6. # the terms of the GNU General Public License as published by the Free Software
  7. # Foundation; version 2 of the License.
  8. #
  9. # This program is distributed in the hope that it will be useful, but WITHOUT
  10. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License along with
  14. # this program; if not, write to the Free Software Foundation, Inc., 59 Temple
  15. # Place, Suite 330, Boston, MA 02111-1307 USA
  16. #
  17. # Prepare the MySQL source code tree for building
  18. # with checked-out InnoDB Subversion directory.
  19. # This script assumes that the current directory is storage/innobase.
  20. set -eu
  21. TARGETDIR=../storage/innobase
  22. # link the build scripts
  23. BUILDSCRIPTS="compile-innodb compile-innodb-debug"
  24. for script in $BUILDSCRIPTS ; do
  25. ln -sf $TARGETDIR/$script ../../BUILD/
  26. done
  27. cd ../../mysql-test/t
  28. ln -sf ../$TARGETDIR/mysql-test/*.test ../$TARGETDIR/mysql-test/*.opt .
  29. cd ../r
  30. ln -sf ../$TARGETDIR/mysql-test/*.result .
  31. cd ../include
  32. ln -sf ../$TARGETDIR/mysql-test/*.inc .
  33. # Apply any patches that are needed to make the mysql-test suite successful.
  34. # These patches are usually needed because of deviations of behavior between
  35. # the stock InnoDB and the InnoDB Plugin.
  36. cd ../..
  37. for patch in storage/innobase/mysql-test/patches/*.diff ; do
  38. if [ "${patch}" != "storage/innobase/mysql-test/patches/*.diff" ] ; then
  39. patch -p0 < ${patch}
  40. fi
  41. done