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.

405 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
  1. #!/bin/sh
  2. # Copyright (C) 2006 MySQL AB
  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. mkdir $DESTDIR
  113. mkdir $DESTDIR/bin
  114. cp client/$TARGET/*.exe $DESTDIR/bin/
  115. cp extra/$TARGET/*.exe $DESTDIR/bin/
  116. cp storage/myisam/$TARGET/*.exe $DESTDIR/bin/
  117. if [ x"$TARGET" != x"release" ] ; then
  118. cp client/$TARGET/mysql.pdb $DESTDIR/bin/
  119. cp client/$TARGET/mysqladmin.pdb $DESTDIR/bin/
  120. cp client/$TARGET/mysqlbinlog.pdb $DESTDIR/bin/
  121. cp client/$TARGET/mysqldump.pdb $DESTDIR/bin/
  122. cp client/$TARGET/mysqlimport.pdb $DESTDIR/bin/
  123. cp client/$TARGET/mysqlshow.pdb $DESTDIR/bin/
  124. fi
  125. cp tests/$TARGET/*.exe $DESTDIR/bin/
  126. cp libmysql/$TARGET/libmysql.dll $DESTDIR/bin/
  127. cp sql/$TARGET/mysqld.exe $DESTDIR/bin/mysqld$EXE_SUFFIX.exe
  128. cp sql/$TARGET/mysqld.map $DESTDIR/bin/mysqld$EXE_SUFFIX.map
  129. if [ x"$TARGET" != x"release" ] ; then
  130. cp sql/$TARGET/mysqld.pdb $DESTDIR/bin/mysqld$EXE_SUFFIX.pdb
  131. fi
  132. if [ x"$PACK_DEBUG" = x"" -a -f "sql/debug/mysqld.exe" -o \
  133. x"$PACK_DEBUG" = x"yes" ] ; then
  134. cp sql/debug/mysqld.exe $DESTDIR/bin/mysqld-debug.exe
  135. cp sql/debug/mysqld.pdb $DESTDIR/bin/mysqld-debug.pdb
  136. cp sql/debug/mysqld.map $DESTDIR/bin/mysqld-debug.map
  137. fi
  138. # ----------------------------------------------------------------------
  139. # Copy data directory, readme files etc
  140. # ----------------------------------------------------------------------
  141. if [ -d win/data ] ; then
  142. cp -pR win/data $DESTDIR/
  143. fi
  144. mkdir $DESTDIR/Docs
  145. cp Docs/INSTALL-BINARY $DESTDIR/Docs/
  146. cp Docs/manual.chm $DESTDIR/Docs/ || /bin/true
  147. cp ChangeLog $DESTDIR/Docs/ || /bin/true
  148. cp support-files/my-*.ini $DESTDIR/
  149. if [ -f COPYING ] ; then
  150. cp COPYING EXCEPTIONS-CLIENT $DESTDIR/
  151. cp COPYING $DESTDIR/Docs/
  152. fi
  153. # ----------------------------------------------------------------------
  154. # These will be filled in when we enable embedded. Note that if no
  155. # argument is given, it is copied if exists, else a check is done.
  156. # ----------------------------------------------------------------------
  157. copy_embedded()
  158. {
  159. mkdir -p $DESTDIR/Embedded/DLL/release \
  160. $DESTDIR/Embedded/static/release \
  161. $DESTDIR/include
  162. cp libmysqld/libmysqld.def $DESTDIR/include/
  163. cp libmysqld/$TARGET/mysqlserver.lib $DESTDIR/Embedded/static/release/
  164. cp libmysqld/$TARGET/libmysqld.dll $DESTDIR/Embedded/DLL/release/
  165. cp libmysqld/$TARGET/libmysqld.exp $DESTDIR/Embedded/DLL/release/
  166. cp libmysqld/$TARGET/libmysqld.lib $DESTDIR/Embedded/DLL/release/
  167. if [ x"$TARGET" != x"release" ] ; then
  168. cp libmysqld/$TARGET/mysqlserver.pdb $DESTDIR/Embedded/static/release/
  169. cp libmysqld/$TARGET/libmysqld.pdb $DESTDIR/Embedded/DLL/release/
  170. fi
  171. if [ x"$PACK_DEBUG" = x"" -a -f "libmysqld/debug/libmysqld.lib" -o \
  172. x"$PACK_DEBUG" = x"yes" ] ; then
  173. mkdir -p $DESTDIR/Embedded/DLL/debug \
  174. $DESTDIR/Embedded/static/debug
  175. cp libmysqld/debug/mysqlserver.lib $DESTDIR/Embedded/static/debug/
  176. cp libmysqld/debug/mysqlserver.pdb $DESTDIR/Embedded/static/debug/
  177. cp libmysqld/debug/libmysqld.dll $DESTDIR/Embedded/DLL/debug/
  178. cp libmysqld/debug/libmysqld.exp $DESTDIR/Embedded/DLL/debug/
  179. cp libmysqld/debug/libmysqld.lib $DESTDIR/Embedded/DLL/debug/
  180. cp libmysqld/debug/libmysqld.pdb $DESTDIR/Embedded/DLL/debug/
  181. fi
  182. }
  183. if [ x"$PACK_EMBEDDED" = x"" -a \
  184. -f "libmysqld/$TARGET/mysqlserver.lib" -a \
  185. -f "libmysqld/$TARGET/libmysqld.lib" -o \
  186. x"$PACK_EMBEDDED" = x"yes" ] ; then
  187. copy_embedded
  188. fi
  189. # ----------------------------------------------------------------------
  190. # Note: Make sure to sync with include/Makefile.am and WiX installer
  191. # XML specifications
  192. # ----------------------------------------------------------------------
  193. mkdir -p $DESTDIR/include
  194. cp include/mysql.h \
  195. include/mysql_com.h \
  196. include/mysql_time.h \
  197. include/my_list.h \
  198. include/my_alloc.h \
  199. include/typelib.h \
  200. include/my_dbug.h \
  201. include/m_string.h \
  202. include/my_sys.h \
  203. include/my_xml.h \
  204. include/mysql_embed.h \
  205. include/my_pthread.h \
  206. include/my_no_pthread.h \
  207. include/decimal.h \
  208. include/errmsg.h \
  209. include/my_global.h \
  210. include/my_net.h \
  211. include/my_getopt.h \
  212. include/sslopt-longopts.h \
  213. include/my_dir.h \
  214. include/sslopt-vars.h \
  215. include/sslopt-case.h \
  216. include/sql_common.h \
  217. include/keycache.h \
  218. include/m_ctype.h \
  219. include/my_attribute.h \
  220. include/mysqld_error.h \
  221. include/sql_state.h \
  222. include/mysqld_ername.h \
  223. include/mysql_version.h \
  224. include/config-win.h \
  225. libmysql/libmysql.def \
  226. $DESTDIR/include/
  227. mkdir -p $DESTDIR/include/mysql
  228. cp include/mysql/plugin.h $DESTDIR/include/mysql/
  229. # ----------------------------------------------------------------------
  230. # Client libraries, and other libraries
  231. # ----------------------------------------------------------------------
  232. mkdir -p $DESTDIR/lib/opt
  233. mkdir -p $DESTDIR/lib/plugin
  234. cp sql/$TARGET/mysqld.lib $DESTDIR/lib/
  235. cp libmysql/$TARGET/libmysql.dll \
  236. libmysql/$TARGET/libmysql.lib \
  237. libmysql/$TARGET/mysqlclient.lib \
  238. mysys/$TARGET/mysys.lib \
  239. regex/$TARGET/regex.lib \
  240. strings/$TARGET/strings.lib \
  241. zlib/$TARGET/zlib.lib $DESTDIR/lib/opt/
  242. if [ -d storage/innodb_plugin ]; then
  243. cp storage/innodb_plugin/$TARGET/ha_innodb_plugin.dll \
  244. $DESTDIR/lib/plugin/
  245. fi
  246. if [ x"$TARGET" != x"release" ] ; then
  247. cp libmysql/$TARGET/libmysql.pdb \
  248. libmysql/$TARGET/mysqlclient.pdb \
  249. mysys/$TARGET/mysys.pdb \
  250. regex/$TARGET/regex.pdb \
  251. strings/$TARGET/strings.pdb \
  252. zlib/$TARGET/zlib.pdb $DESTDIR/lib/opt/
  253. if [ -d storage/innodb_plugin ]; then
  254. cp storage/innodb_plugin/$TARGET/ha_innodb_plugin.pdb \
  255. $DESTDIR/lib/plugin/
  256. fi
  257. fi
  258. if [ x"$PACK_DEBUG" = x"" -a -f "libmysql/debug/libmysql.lib" -o \
  259. x"$PACK_DEBUG" = x"yes" ] ; then
  260. mkdir -p $DESTDIR/lib/debug
  261. mkdir -p $DESTDIR/lib/plugin/debug
  262. cp libmysql/debug/libmysql.dll \
  263. libmysql/debug/libmysql.lib \
  264. libmysql/debug/libmysql.pdb \
  265. libmysql/debug/mysqlclient.lib \
  266. libmysql/debug/mysqlclient.pdb \
  267. mysys/debug/mysys.lib \
  268. mysys/debug/mysys.pdb \
  269. regex/debug/regex.lib \
  270. regex/debug/regex.pdb \
  271. strings/debug/strings.lib \
  272. strings/debug/strings.pdb \
  273. zlib/debug/zlib.lib \
  274. zlib/debug/zlib.pdb $DESTDIR/lib/debug/
  275. if [ -d storage/innodb_plugin ]; then
  276. cp storage/innodb_plugin/debug/ha_innodb_plugin.dll \
  277. storage/innodb_plugin/debug/ha_innodb_plugin.lib \
  278. storage/innodb_plugin/debug/ha_innodb_plugin.pdb \
  279. $DESTDIR/lib/plugin/debug/
  280. fi
  281. fi
  282. # ----------------------------------------------------------------------
  283. # Copy the test directory
  284. # ----------------------------------------------------------------------
  285. mkdir $DESTDIR/mysql-test
  286. cp mysql-test/mysql-test-run.pl $DESTDIR/mysql-test/
  287. cp mysql-test/README $DESTDIR/mysql-test/
  288. cp -R mysql-test/{t,r,include,suite,std_data,lib} $DESTDIR/mysql-test/
  289. # Note that this will not copy "extra" if a soft link
  290. if [ -d mysql-test/extra ] ; then
  291. mkdir $DESTDIR/mysql-test/extra
  292. cp -pR mysql-test/extra/* $DESTDIR/mysql-test/extra/
  293. fi
  294. # ----------------------------------------------------------------------
  295. # Copy what could be usable in the "scripts" directory
  296. # ----------------------------------------------------------------------
  297. mysql_scripts="\
  298. mysql_config.pl \
  299. mysql_convert_table_format.pl \
  300. mysql_install_db.pl \
  301. mysql_secure_installation.pl \
  302. mysqld_multi.pl \
  303. mysqldumpslow.pl \
  304. mysqlhotcopy.pl \
  305. "
  306. mkdir -p $DESTDIR/scripts
  307. for i in $mysql_scripts
  308. do
  309. cp scripts/$i $DESTDIR/scripts/$i
  310. done
  311. cp -pR sql/share $DESTDIR/
  312. cp -pR sql-bench $DESTDIR/
  313. rm -f $DESTDIR/sql-bench/*.sh $DESTDIR/sql-bench/Makefile*
  314. # The SQL initialisation code is to be in "share"
  315. cp scripts/*.sql $DESTDIR/share/
  316. # ----------------------------------------------------------------------
  317. # Clean up from possibly copied SCCS directories
  318. # ----------------------------------------------------------------------
  319. rm -rf `find $DISTDIR -type d -name SCCS -print`
  320. # ----------------------------------------------------------------------
  321. # Copy other files specified on command line DEST=SOURCE
  322. # ----------------------------------------------------------------------
  323. for arg do
  324. dst=`echo $arg | sed 's/=.*$//'`
  325. src=`echo $arg | sed 's/^.*=//'`
  326. if [ x"$dst" = x"" -o x"$src" = x"" ] ; then
  327. echo "Invalid specification of what to copy"
  328. usage
  329. fi
  330. mkdir -p `dirname $DESTDIR/$dst`
  331. cp -pR "$src" $DESTDIR/$dst
  332. done
  333. # ----------------------------------------------------------------------
  334. # Finally create the ZIP archive
  335. # ----------------------------------------------------------------------
  336. rm -f $NOINST_NAME.zip
  337. zip -r $NOINST_NAME.zip $DESTDIR
  338. rm -Rf $DESTDIR