From: Date: July 27 2007 3:14pm Subject: bk commit into 5.0 tree (jperkin:1.2481) BUG#28585 List-Archive: http://lists.mysql.com/commits/31699 X-Bug: 28585 Message-Id: <200707271314.l6RDETlS030556@production.mysql.com> Below is the list of changes that have just been committed into a local 5.0 repository of jperkin. When jperkin does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2007-07-27 15:14:21+02:00, jperkin@stripped +1 -0 More fixes and cleanups for bug#28585: - make the 'dist-hook' from top-level Makefile work again. - we can find my_print_defaults from --basedir by parsing command line arguments prior to running my_print_defaults. - take advantage of additional command line parsing and allow the --no-defaults etc arguments to work anywhere rather than having to be the first argument. - find SQL files either from binary archive or source install. - consolidate and tidy code and error messages. scripts/mysql_install_db.sh@stripped, 2007-07-27 15:05:51+02:00, jperkin@stripped +12 -3 Consolidate error messages. scripts/mysql_install_db.sh@stripped, 2007-07-27 14:52:32+02:00, jperkin@stripped +42 -20 Add find_in_basedir() to reduce copy+paste when finding files in either a binary distribution or installed source compile. Use it to correctly find location of SQL files and adjust $pkgdatadir accordingly. scripts/mysql_install_db.sh@stripped, 2007-07-27 14:51:06+02:00, jperkin@stripped +1 -1 Quote variable correctly. scripts/mysql_install_db.sh@stripped, 2007-07-27 13:12:05+02:00, jperkin@stripped +35 -17 Perform an initial parse of command line arguments to get --basedir and attempt to find my_print_defaults inside. This also allows us to move the check for --no-defaults etc into the main parse routine and remove the limitation that it must be the first argument. scripts/mysql_install_db.sh@stripped, 2007-07-27 13:01:12+02:00, jperkin@stripped +2 -2 Find SQL scripts correctly if using --basedir diff -Nrup a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh --- a/scripts/mysql_install_db.sh 2007-07-26 14:30:29 +02:00 +++ b/scripts/mysql_install_db.sh 2007-07-27 15:05:51 +02:00 @@ -32,12 +32,6 @@ in_rpm=0 ip_only=0 windows=0 -case "$1" in - --no-defaults|--defaults-file=*|--defaults-extra-file=*) - defaults="$1"; shift - ;; -esac - usage() { cat <