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.

416 lines
14 KiB

Many files: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header Added GPL copyright text my_vle.h, rpl_utility.h, my_vle.c, base64-t.c, rpl_utility.cc: Changed copyright header formatting some plugin_example.c, daemon_example.c: Added "Copyright (C) 2006 MySQL AB" to GPL header CMakeLists.txt: Added GPL copyright text client/CMakeLists.txt: Added GPL copyright text dbug/CMakeLists.txt: Added GPL copyright text extra/CMakeLists.txt: Added GPL copyright text extra/yassl/CMakeLists.txt: Added GPL copyright text extra/yassl/taocrypt/CMakeLists.txt: Added GPL copyright text libmysql/CMakeLists.txt: Added GPL copyright text libmysqld/CMakeLists.txt: Added GPL copyright text libmysqld/examples/CMakeLists.txt: Added GPL copyright text mysys/CMakeLists.txt: Added GPL copyright text regex/CMakeLists.txt: Added GPL copyright text server-tools/instance-manager/CMakeLists.txt: Added GPL copyright text sql/CMakeLists.txt: Added GPL copyright text storage/archive/CMakeLists.txt: Added GPL copyright text storage/blackhole/CMakeLists.txt: Added GPL copyright text storage/csv/CMakeLists.txt: Added GPL copyright text storage/example/CMakeLists.txt: Added GPL copyright text storage/federated/CMakeLists.txt: Added GPL copyright text storage/heap/CMakeLists.txt: Added GPL copyright text storage/innobase/CMakeLists.txt: Added GPL copyright text storage/myisam/CMakeLists.txt: Added GPL copyright text storage/myisammrg/CMakeLists.txt: Added GPL copyright text strings/CMakeLists.txt: Added GPL copyright text tests/CMakeLists.txt: Added GPL copyright text vio/CMakeLists.txt: Added GPL copyright text zlib/CMakeLists.txt: Added GPL copyright text include/my_vle.h: Changed copyright header formatting some mysys/my_vle.c: Changed copyright header formatting some plugin/daemon_example/daemon_example.c: Added "Copyright (C) 2006 MySQL AB" to GPL header plugin/fulltext/plugin_example.c: Added "Copyright (C) 2006 MySQL AB" to GPL header plugin/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/authors.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/contributors.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/item_xmlfunc.cc: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/partition_element.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/partition_info.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/rpl_injector.cc: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/rpl_injector.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/sql_binlog.cc: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/sql_servers.h: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/archive/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/blackhole/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/csv/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/example/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header storage/federated/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header win/Makefile.am: Removed "MySQL Finland AB & TCX DataKonsult AB" from copyright header Adjusted year(s) in copyright header sql/rpl_utility.cc: Changed copyright header formatting some sql/rpl_utility.h: Changed copyright header formatting some unittest/mysys/base64-t.c: Changed copyright header formatting some include/my_uctype.h: Added GPL copyright text plugin/daemon_example/Makefile.am: Added GPL copyright text plugin/fulltext/Makefile.am: Added GPL copyright text scripts/make_win_bin_dist: Added GPL copyright text server-tools/instance-manager/user_management_commands.cc: Added GPL copyright text sql/sql_builtin.cc.in: Added GPL copyright text sql/sql_show.h: Added GPL copyright text storage/archive/archive_test.c: Added GPL copyright text storage/ndb/src/kernel/blocks/dbtup/test_varpage.cpp: Added GPL copyright text storage/ndb/src/kernel/blocks/diskpage.cpp: Added GPL copyright text storage/ndb/src/kernel/vm/Rope.cpp: Added GPL copyright text storage/ndb/src/mgmsrv/ParamInfo.hpp: Added GPL copyright text strings/uctypedump.c: Added GPL copyright text unittest/Makefile.am: Added GPL copyright text unittest/examples/Makefile.am: Added GPL copyright text unittest/examples/core-t.c: Added GPL copyright text unittest/examples/no_plan-t.c: Added GPL copyright text unittest/examples/simple-t.c: Added GPL copyright text unittest/examples/skip-t.c: Added GPL copyright text unittest/examples/skip_all-t.c: Added GPL copyright text unittest/examples/todo-t.c: Added GPL copyright text unittest/mysys/Makefile.am: Added GPL copyright text unittest/mytap/Makefile.am: Added GPL copyright text unittest/mytap/t/Makefile.am: Added GPL copyright text unittest/mytap/t/basic-t.c: Added GPL copyright text unittest/unit.pl: Added GPL copyright text win/build-vs71.bat: Added GPL copyright text win/build-vs8.bat: Added GPL copyright text win/configure.js: Added GPL copyright text
19 years ago
19 years ago
CMakeLists.txt (several), make_win_bin_dist: Aligned client library build and use with the Unix version when it comes to what source to include directly in the builds, and what libraries to link with (bug#30118). Also reviewed, corrected and made more clear when static or dynamic Thread Local Storage is to be used. Some code duplication was removed, and some redundant library usage were removed, reducing the risk of incorrect TLS usage. client/CMakeLists.txt: - Removed code duplication by moving build of "mysqlclient" to the "libmysql" directory - Link clients with the new "mysqlclient_notls", to protect for the case the clients use more than the client API, and access thread data directly. - Synced explicit target addition of sources with Unix. dbug/CMakeLists.txt: No need to set CXX flags, no C++ code libmysql/CMakeLists.txt: - Aligned more with Unix version when it comes to included source files - Build both DLL and static library in this directory - Produce separe static TLS version of the static client library, for use when building clients in this build that might access TLS storage directly. mysys/CMakeLists.txt: We only have to build the static TLS version, as no clients are linking directly with the "mysys" library. scripts/make_win_bin_dist: Ajusted paths to new "mysqlclient.lib" location in source tree sql/CMakeLists.txt: Removed duplicate "ha_blackhole.cc" in file listing Removed explicit link to "dbug.lib" not needed Link with the static TLS "mysqlclient_notls" tests/CMakeLists.txt: Removed explicit link to "dbug", "mysys", "yassl", "taocrypt" and "zlib" not needed. Added explicit source addition "../mysys/my_memmem.c". No need for setting CXX flags, no C++ code. Use the static TLS "mysqlclient_notls" for linkage. zlib/CMakeLists.txt: No need for a dynamic TLS version of this library, no access to thread storage is done from it. Also no need to define MYSQL_CLIENT, not used, or __WIN32__ that is handled by the library header without this define.
19 years ago
CMakeLists.txt (several), make_win_bin_dist: Aligned client library build and use with the Unix version when it comes to what source to include directly in the builds, and what libraries to link with (bug#30118). Also reviewed, corrected and made more clear when static or dynamic Thread Local Storage is to be used. Some code duplication was removed, and some redundant library usage were removed, reducing the risk of incorrect TLS usage. client/CMakeLists.txt: - Removed code duplication by moving build of "mysqlclient" to the "libmysql" directory - Link clients with the new "mysqlclient_notls", to protect for the case the clients use more than the client API, and access thread data directly. - Synced explicit target addition of sources with Unix. dbug/CMakeLists.txt: No need to set CXX flags, no C++ code libmysql/CMakeLists.txt: - Aligned more with Unix version when it comes to included source files - Build both DLL and static library in this directory - Produce separe static TLS version of the static client library, for use when building clients in this build that might access TLS storage directly. mysys/CMakeLists.txt: We only have to build the static TLS version, as no clients are linking directly with the "mysys" library. scripts/make_win_bin_dist: Ajusted paths to new "mysqlclient.lib" location in source tree sql/CMakeLists.txt: Removed duplicate "ha_blackhole.cc" in file listing Removed explicit link to "dbug.lib" not needed Link with the static TLS "mysqlclient_notls" tests/CMakeLists.txt: Removed explicit link to "dbug", "mysys", "yassl", "taocrypt" and "zlib" not needed. Added explicit source addition "../mysys/my_memmem.c". No need for setting CXX flags, no C++ code. Use the static TLS "mysqlclient_notls" for linkage. zlib/CMakeLists.txt: No need for a dynamic TLS version of this library, no access to thread storage is done from it. Also no need to define MYSQL_CLIENT, not used, or __WIN32__ that is handled by the library header without this define.
19 years ago
make_win_bin_dist CMakeLists.txt resolveip.c Makefile.am: Better Windows support in the scripts directory mysql_config.pl.in, mysql_install_db.pl.in: New Perl version of Unix shell script, mainly for Windows Many files in scripts directory: Use default Perl location "#!/usr/bin/perl" instead of the build host path extra/CMakeLists.txt: Added target for executable "resolveip" extra/resolveip.c: Exclude Unix specific headers when compiling on Windows scripts/CMakeLists.txt: On Windows, filter Perl scripts and change name from ".sh" to ".pl" mysql_convert_table_format.sh mysql_explain_log.sh mysql_secure_installation.sh mysql_tableinfo.sh mysqld_multi.sh mysqldumpslow.sh mysqlhotcopy.sh Do the same for the new Windows specific Perl versions of shell scripts mysql_config.pl.in mysql_install_db.pl.in In CMake, set reasonable values for 'CFLAGS', 'prefix', 'datadir' and so on. scripts/Makefile.am: Include "mysql_config.pl.in" and "mysql_install_db.pl.in" in the source TAR scripts/make_win_bin_dist: Only include explicitly listed scripts from the "scripts" directory scripts/mysql_convert_table_format.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_explain_log.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_tableinfo.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqld_multi.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqldumpslow.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqlhotcopy.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_config.pl.in: New Perl version of Unix shell script, mainly for Windows scripts/mysql_install_db.pl.in: New Perl version of Unix shell script, mainly for Windows
18 years ago
make_win_bin_dist CMakeLists.txt resolveip.c Makefile.am: Better Windows support in the scripts directory mysql_config.pl.in, mysql_install_db.pl.in: New Perl version of Unix shell script, mainly for Windows Many files in scripts directory: Use default Perl location "#!/usr/bin/perl" instead of the build host path extra/CMakeLists.txt: Added target for executable "resolveip" extra/resolveip.c: Exclude Unix specific headers when compiling on Windows scripts/CMakeLists.txt: On Windows, filter Perl scripts and change name from ".sh" to ".pl" mysql_convert_table_format.sh mysql_explain_log.sh mysql_secure_installation.sh mysql_tableinfo.sh mysqld_multi.sh mysqldumpslow.sh mysqlhotcopy.sh Do the same for the new Windows specific Perl versions of shell scripts mysql_config.pl.in mysql_install_db.pl.in In CMake, set reasonable values for 'CFLAGS', 'prefix', 'datadir' and so on. scripts/Makefile.am: Include "mysql_config.pl.in" and "mysql_install_db.pl.in" in the source TAR scripts/make_win_bin_dist: Only include explicitly listed scripts from the "scripts" directory scripts/mysql_convert_table_format.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_explain_log.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_tableinfo.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqld_multi.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqldumpslow.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqlhotcopy.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_config.pl.in: New Perl version of Unix shell script, mainly for Windows scripts/mysql_install_db.pl.in: New Perl version of Unix shell script, mainly for Windows
18 years ago
make_win_bin_dist CMakeLists.txt resolveip.c Makefile.am: Better Windows support in the scripts directory mysql_config.pl.in, mysql_install_db.pl.in: New Perl version of Unix shell script, mainly for Windows Many files in scripts directory: Use default Perl location "#!/usr/bin/perl" instead of the build host path extra/CMakeLists.txt: Added target for executable "resolveip" extra/resolveip.c: Exclude Unix specific headers when compiling on Windows scripts/CMakeLists.txt: On Windows, filter Perl scripts and change name from ".sh" to ".pl" mysql_convert_table_format.sh mysql_explain_log.sh mysql_secure_installation.sh mysql_tableinfo.sh mysqld_multi.sh mysqldumpslow.sh mysqlhotcopy.sh Do the same for the new Windows specific Perl versions of shell scripts mysql_config.pl.in mysql_install_db.pl.in In CMake, set reasonable values for 'CFLAGS', 'prefix', 'datadir' and so on. scripts/Makefile.am: Include "mysql_config.pl.in" and "mysql_install_db.pl.in" in the source TAR scripts/make_win_bin_dist: Only include explicitly listed scripts from the "scripts" directory scripts/mysql_convert_table_format.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_explain_log.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_tableinfo.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqld_multi.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqldumpslow.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqlhotcopy.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_config.pl.in: New Perl version of Unix shell script, mainly for Windows scripts/mysql_install_db.pl.in: New Perl version of Unix shell script, mainly for Windows
18 years ago
make_win_bin_dist CMakeLists.txt resolveip.c Makefile.am: Better Windows support in the scripts directory mysql_config.pl.in, mysql_install_db.pl.in: New Perl version of Unix shell script, mainly for Windows Many files in scripts directory: Use default Perl location "#!/usr/bin/perl" instead of the build host path extra/CMakeLists.txt: Added target for executable "resolveip" extra/resolveip.c: Exclude Unix specific headers when compiling on Windows scripts/CMakeLists.txt: On Windows, filter Perl scripts and change name from ".sh" to ".pl" mysql_convert_table_format.sh mysql_explain_log.sh mysql_secure_installation.sh mysql_tableinfo.sh mysqld_multi.sh mysqldumpslow.sh mysqlhotcopy.sh Do the same for the new Windows specific Perl versions of shell scripts mysql_config.pl.in mysql_install_db.pl.in In CMake, set reasonable values for 'CFLAGS', 'prefix', 'datadir' and so on. scripts/Makefile.am: Include "mysql_config.pl.in" and "mysql_install_db.pl.in" in the source TAR scripts/make_win_bin_dist: Only include explicitly listed scripts from the "scripts" directory scripts/mysql_convert_table_format.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_explain_log.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_tableinfo.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqld_multi.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqldumpslow.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysqlhotcopy.sh: Use default Perl location "#!/usr/bin/perl" instead of the build host path scripts/mysql_config.pl.in: New Perl version of Unix shell script, mainly for Windows scripts/mysql_install_db.pl.in: New Perl version of Unix shell script, mainly for Windows
18 years ago
  1. #!/bin/sh
  2. # Copyright (c) 2006, 2011, Oracle and/or its affiliates.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; version 2 of the License.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. # Exit if failing to copy, we want exact specifications, not
  17. # just "what happen to be built".
  18. set -e
  19. # ----------------------------------------------------------------------
  20. # Read first argument that is the base name of the resulting TAR file.
  21. # See usage() function below for a description on the arguments.
  22. #
  23. # NOTE: We will read the rest of the command line later on.
  24. # NOTE: Pattern matching with "{..,..}" can't be used, not portable.
  25. # ----------------------------------------------------------------------
  26. # FIXME why "libmysql.dll" installed both in "bin" and "lib/opt"?
  27. usage()
  28. {
  29. echo <<EOF
  30. Usage: make_win_bin_dist [ options ] package-base-name [ copy-defs... ]
  31. This is a script to run from the top of a source tree built on Windows.
  32. The "package-base-name" argument should be something like
  33. mysql-noinstall-5.0.25-win32 (or winx64)
  34. and will become the name of the directory of the unpacked ZIP (stripping
  35. away the "noinstall" part of the ZIP file name if any) and the base
  36. for the resulting package name.
  37. Options are
  38. --embedded Pack the embedded server and give error if not built.
  39. The default is to pack it if it is built.
  40. --no-embedded Don't pack the embedded server even if built
  41. --debug Pack the debug binaries and give error if not built.
  42. The default is to pack them if they are built.
  43. --no-debug Don't pack the debug binaries even if built
  44. --only-debug The target for this build was "Debug", and we just
  45. want to replace the normal binaries with debug
  46. versions, i.e. no separate "debug" directories.
  47. --exe-suffix=SUF Add a suffix to the filename part of the "mysqld" binary.
  48. As you might want to include files of directories from other builds
  49. (like a "mysqld-max.exe" server), you can instruct this script to copy
  50. them in for you. This is the "copy-def" arguments, and they are of the
  51. form
  52. relative-dest-name=source-name .....
  53. i.e. can be something like
  54. bin/mysqld-max.exe=../my-max-build/sql/release/mysqld.exe
  55. If you specify a directory the whole directory will be copied.
  56. EOF
  57. exit 1
  58. }
  59. # ----------------------------------------------------------------------
  60. # We need to be at the top of a source tree, check that we are
  61. # ----------------------------------------------------------------------
  62. if [ ! -d "sql" ] ; then
  63. echo "You need to run this script from inside the source tree"
  64. usage
  65. fi
  66. # ----------------------------------------------------------------------
  67. # Actual argument processing, first part
  68. # ----------------------------------------------------------------------
  69. NOINST_NAME=""
  70. TARGET="release"
  71. PACK_EMBEDDED="" # Could be "no", "yes" or empty
  72. PACK_DEBUG="" # Could be "no", "yes" or empty
  73. EXE_SUFFIX=""
  74. for arg do
  75. shift
  76. case "$arg" in
  77. --embedded) PACK_EMBEDDED="yes" ;;
  78. --no-embedded) PACK_EMBEDDED="no" ;;
  79. --debug) PACK_DEBUG="yes" ;;
  80. --no-debug) PACK_DEBUG="no" ;;
  81. --only-debug) TARGET="debug" ; PACK_DEBUG="no" ;;
  82. --exe-suffix=*) EXE_SUFFIX=`echo "$arg" | sed -e "s,--exe-suffix=,,"` ;;
  83. -*)
  84. echo "Unknown argument '$arg'"
  85. usage
  86. ;;
  87. *)
  88. NOINST_NAME="$arg"
  89. break
  90. esac
  91. done
  92. if [ x"$NOINST_NAME" = x"" ] ; then
  93. echo "No base package name given"
  94. usage
  95. fi
  96. DESTDIR=`echo $NOINST_NAME | sed 's/-noinstall-/-/'`
  97. if [ -e $DESTDIR ] ; then
  98. echo "Please remove the old $DESTDIR before running this script"
  99. usage
  100. fi
  101. trap 'echo "Cleaning up and exiting..." ; rm -fr $DESTDIR; exit 1' ERR
  102. # ----------------------------------------------------------------------
  103. # Adjust target name if needed, release with debug info has another name
  104. # ----------------------------------------------------------------------
  105. if [ x"$TARGET" = x"release" -a -f "client/relwithdebinfo/mysql.exe" ]
  106. then
  107. TARGET="relwithdebinfo"
  108. fi
  109. # ----------------------------------------------------------------------
  110. # Copy executables, and client DLL
  111. # ----------------------------------------------------------------------
  112. MYISAM_BINARIES="myisamchk myisamlog myisampack myisam_ftdump"
  113. MARIA_BINARIES="aria_chk aria_dump_log aria_ftdump aria_pack aria_read_log"
  114. mkdir $DESTDIR
  115. mkdir $DESTDIR/bin
  116. cp client/$TARGET/*.exe $DESTDIR/bin/
  117. cp extra/$TARGET/*.exe $DESTDIR/bin/
  118. # MyISAM
  119. #cp storage/myisam/$TARGET/*.exe $DESTDIR/bin/
  120. for eng in $MYISAM_BINARIES ; do
  121. cp storage/myisam/$TARGET/$eng.{exe,pdb} $DESTDIR/bin
  122. done
  123. # Maria
  124. for eng in $MARIA_BINARIES ; do
  125. cp storage/maria/$TARGET/$eng.{exe,pdb} $DESTDIR/bin
  126. done
  127. if [ x"$TARGET" != x"release" ] ; then
  128. cp client/$TARGET/mysql.pdb $DESTDIR/bin/
  129. cp client/$TARGET/mysqladmin.pdb $DESTDIR/bin/
  130. cp client/$TARGET/mysqlbinlog.pdb $DESTDIR/bin/
  131. cp client/$TARGET/mysqldump.pdb $DESTDIR/bin/
  132. cp client/$TARGET/mysqlimport.pdb $DESTDIR/bin/
  133. cp client/$TARGET/mysqlshow.pdb $DESTDIR/bin/
  134. fi
  135. cp tests/$TARGET/*.exe $DESTDIR/bin/
  136. cp libmysql/$TARGET/libmysql.dll $DESTDIR/bin/
  137. cp sql/$TARGET/mysqld.exe $DESTDIR/bin/mysqld$EXE_SUFFIX.exe
  138. if [ x"$TARGET" != x"release" ] ; then
  139. cp sql/$TARGET/mysqld.pdb $DESTDIR/bin/mysqld$EXE_SUFFIX.pdb
  140. fi
  141. if [ x"$PACK_DEBUG" = x"" -a -f "sql/debug/mysqld.exe" -o \
  142. x"$PACK_DEBUG" = x"yes" ] ; then
  143. cp sql/debug/mysqld.exe $DESTDIR/bin/mysqld-debug.exe
  144. cp sql/debug/mysqld.pdb $DESTDIR/bin/mysqld-debug.pdb
  145. fi
  146. # ----------------------------------------------------------------------
  147. # Copy data directory, readme files etc
  148. # ----------------------------------------------------------------------
  149. if [ -d win/data ] ; then
  150. cp -pR win/data $DESTDIR/
  151. fi
  152. mkdir $DESTDIR/Docs
  153. cp Docs/INSTALL-BINARY $DESTDIR/Docs/
  154. cp Docs/manual.chm $DESTDIR/Docs/ || /bin/true
  155. cp ChangeLog $DESTDIR/Docs/ || /bin/true
  156. cp support-files/my-*.ini $DESTDIR/
  157. cp README $DESTDIR/
  158. if [ -f COPYING ] ; then
  159. cp COPYING EXCEPTIONS-CLIENT $DESTDIR/
  160. cp COPYING $DESTDIR/Docs/
  161. fi
  162. # ----------------------------------------------------------------------
  163. # These will be filled in when we enable embedded. Note that if no
  164. # argument is given, it is copied if exists, else a check is done.
  165. # ----------------------------------------------------------------------
  166. copy_embedded()
  167. {
  168. mkdir -p $DESTDIR/Embedded/DLL/release \
  169. $DESTDIR/Embedded/static/release \
  170. $DESTDIR/include
  171. cp libmysqld/libmysqld.def $DESTDIR/include/
  172. cp libmysqld/$TARGET/mysqlserver.lib $DESTDIR/Embedded/static/release/
  173. cp libmysqld/$TARGET/libmysqld.dll $DESTDIR/Embedded/DLL/release/
  174. cp libmysqld/$TARGET/libmysqld.exp $DESTDIR/Embedded/DLL/release/
  175. cp libmysqld/$TARGET/libmysqld.lib $DESTDIR/Embedded/DLL/release/
  176. if [ x"$TARGET" != x"release" ] ; then
  177. cp libmysqld/$TARGET/mysqlserver.pdb $DESTDIR/Embedded/static/release/
  178. cp libmysqld/$TARGET/libmysqld.pdb $DESTDIR/Embedded/DLL/release/
  179. fi
  180. if [ x"$PACK_DEBUG" = x"" -a -f "libmysqld/debug/libmysqld.lib" -o \
  181. x"$PACK_DEBUG" = x"yes" ] ; then
  182. mkdir -p $DESTDIR/Embedded/DLL/debug \
  183. $DESTDIR/Embedded/static/debug
  184. cp libmysqld/debug/mysqlserver.lib $DESTDIR/Embedded/static/debug/
  185. cp libmysqld/debug/mysqlserver.pdb $DESTDIR/Embedded/static/debug/
  186. cp libmysqld/debug/libmysqld.dll $DESTDIR/Embedded/DLL/debug/
  187. cp libmysqld/debug/libmysqld.exp $DESTDIR/Embedded/DLL/debug/
  188. cp libmysqld/debug/libmysqld.lib $DESTDIR/Embedded/DLL/debug/
  189. cp libmysqld/debug/libmysqld.pdb $DESTDIR/Embedded/DLL/debug/
  190. fi
  191. }
  192. if [ x"$PACK_EMBEDDED" = x"" -a \
  193. -f "libmysqld/$TARGET/mysqlserver.lib" -a \
  194. -f "libmysqld/$TARGET/libmysqld.lib" -o \
  195. x"$PACK_EMBEDDED" = x"yes" ] ; then
  196. copy_embedded
  197. fi
  198. # ----------------------------------------------------------------------
  199. # Note: Make sure to sync with include/Makefile.am and WiX installer
  200. # XML specifications
  201. # ----------------------------------------------------------------------
  202. mkdir -p $DESTDIR/include
  203. cp include/mysql.h \
  204. include/mysql_com.h \
  205. include/mysql_time.h \
  206. include/my_list.h \
  207. include/my_alloc.h \
  208. include/typelib.h \
  209. include/my_dbug.h \
  210. include/m_string.h \
  211. include/my_sys.h \
  212. include/my_xml.h \
  213. include/mysql_embed.h \
  214. include/my_pthread.h \
  215. include/my_no_pthread.h \
  216. include/decimal.h \
  217. include/errmsg.h \
  218. include/my_global.h \
  219. include/my_config.h \
  220. include/my_net.h \
  221. include/my_getopt.h \
  222. include/sslopt-longopts.h \
  223. include/my_dir.h \
  224. include/sslopt-vars.h \
  225. 'include/sslopt-case.h' \
  226. include/sql_common.h \
  227. include/keycache.h \
  228. include/m_ctype.h \
  229. include/my_attribute.h \
  230. include/my_compiler.h \
  231. include/mysqld_error.h \
  232. include/sql_state.h \
  233. include/mysqld_ername.h \
  234. include/mysql_version.h \
  235. libmysql/libmysql.def \
  236. $DESTDIR/include/
  237. mkdir -p $DESTDIR/include/mysql
  238. cp include/mysql/plugin.h $DESTDIR/include/mysql/
  239. # ----------------------------------------------------------------------
  240. # Client libraries, and other libraries
  241. # ----------------------------------------------------------------------
  242. mkdir -p $DESTDIR/lib/opt
  243. mkdir -p $DESTDIR/lib/plugin
  244. cp sql/$TARGET/mysqld.lib $DESTDIR/lib/
  245. cp libmysql/$TARGET/libmysql.dll \
  246. libmysql/$TARGET/libmysql.lib \
  247. libmysql/$TARGET/mysqlclient.lib \
  248. mysys/$TARGET/mysys.lib \
  249. regex/$TARGET/regex.lib \
  250. strings/$TARGET/strings.lib \
  251. zlib/$TARGET/zlib.lib $DESTDIR/lib/opt/
  252. cp storage/*/$TARGET/ha_*.dll $DESTDIR/lib/plugin/
  253. if [ x"$TARGET" != x"release" ] ; then
  254. cp libmysql/$TARGET/libmysql.pdb \
  255. libmysql/$TARGET/mysqlclient.pdb \
  256. mysys/$TARGET/mysys.pdb \
  257. regex/$TARGET/regex.pdb \
  258. strings/$TARGET/strings.pdb \
  259. zlib/$TARGET/zlib.pdb $DESTDIR/lib/opt/
  260. cp storage/*/$TARGET/ha_*.pdb $DESTDIR/lib/plugin/
  261. fi
  262. if [ x"$PACK_DEBUG" = x"" -a -f "libmysql/debug/libmysql.lib" -o \
  263. x"$PACK_DEBUG" = x"yes" ] ; then
  264. mkdir -p $DESTDIR/lib/debug
  265. mkdir -p $DESTDIR/lib/plugin/debug
  266. cp libmysql/debug/libmysql.dll \
  267. libmysql/debug/libmysql.lib \
  268. libmysql/debug/libmysql.pdb \
  269. libmysql/debug/mysqlclient.lib \
  270. libmysql/debug/mysqlclient.pdb \
  271. mysys/debug/mysys.lib \
  272. mysys/debug/mysys.pdb \
  273. regex/debug/regex.lib \
  274. regex/debug/regex.pdb \
  275. strings/debug/strings.lib \
  276. strings/debug/strings.pdb \
  277. zlib/debug/zlib.lib \
  278. zlib/debug/zlib.pdb $DESTDIR/lib/debug/
  279. cp storage/*/debug/ha_*.dll \
  280. storage/*/debug/ha_*.lib \
  281. storage/*/debug/ha_*.pdb \
  282. $DESTDIR/lib/plugin/debug/
  283. fi
  284. # ----------------------------------------------------------------------
  285. # Copy the test directory
  286. # ----------------------------------------------------------------------
  287. mkdir $DESTDIR/mysql-test
  288. cp mysql-test/mysql-test-run.pl $DESTDIR/mysql-test/
  289. cp mysql-test/mysql-stress-test.pl $DESTDIR/mysql-test/
  290. cp mysql-test/README $DESTDIR/mysql-test/
  291. cp -R mysql-test/{t,r,include,suite,std_data,lib,collections} $DESTDIR/mysql-test/
  292. rm -rf $DESTDIR/mysql-test/lib/My/SafeProcess/my_safe_kill.{dir,vcproj}
  293. rm -rf $DESTDIR/mysql-test/lib/My/SafeProcess/my_safe_process.{dir,vcproj}
  294. rm -rf $DESTDIR/mysql-test/lib/My/SafeProcess/{Debug,RelWithDebInfo}/*.{ilk,idb}
  295. # Note that this will not copy "extra" if a soft link
  296. if [ -d mysql-test/extra ] ; then
  297. mkdir $DESTDIR/mysql-test/extra
  298. cp -pR mysql-test/extra/* $DESTDIR/mysql-test/extra/
  299. fi
  300. # ----------------------------------------------------------------------
  301. # Copy what could be usable in the "scripts" directory
  302. # ----------------------------------------------------------------------
  303. mysql_scripts="\
  304. mysql_config.pl \
  305. mysql_convert_table_format.pl \
  306. mysql_install_db.pl \
  307. mysql_secure_installation.pl \
  308. mysqld_multi.pl \
  309. mysqldumpslow.pl \
  310. mysqlhotcopy.pl \
  311. mytop.pl \
  312. "
  313. mkdir -p $DESTDIR/scripts
  314. for i in $mysql_scripts
  315. do
  316. cp scripts/$i $DESTDIR/scripts/$i
  317. done
  318. cp -pR sql/share $DESTDIR/
  319. cp -pR sql-bench $DESTDIR/
  320. rm -f $DESTDIR/sql-bench/*.sh $DESTDIR/sql-bench/Makefile*
  321. # The SQL initialisation code is to be in "share"
  322. cp scripts/*.sql $DESTDIR/share/
  323. # ----------------------------------------------------------------------
  324. # Clean up from possibly copied SCCS directories
  325. # ----------------------------------------------------------------------
  326. rm -rf `/bin/find $DISTDIR -type d -name SCCS -print`
  327. # ----------------------------------------------------------------------
  328. # Copy other files specified on command line DEST=SOURCE
  329. # ----------------------------------------------------------------------
  330. for arg do
  331. dst=`echo $arg | sed -n 's/=.*$//p'`
  332. src=`echo $arg | sed -n 's/^.*=//p'`
  333. if [ x"$dst" = x"" -o x"$src" = x"" ] ; then
  334. echo "Invalid specification of what to copy"
  335. usage
  336. fi
  337. mkdir -p `dirname $DESTDIR/$dst`
  338. cp -pR "$src" $DESTDIR/$dst
  339. done
  340. # ----------------------------------------------------------------------
  341. # Finally create the ZIP archive
  342. # ----------------------------------------------------------------------
  343. rm -f $NOINST_NAME.zip
  344. zip -r $NOINST_NAME.zip $DESTDIR
  345. rm -Rf $DESTDIR