diff options
| author | Mike McQuaid | 2013-01-27 22:38:45 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-01-30 21:51:11 -0800 |
| commit | 336c97637c5449018cde59f7d2a87a298692da08 (patch) | |
| tree | d3ba08dbabf3dfe8c3cb2c6dae2114a25fdf7778 /Library/Formula | |
| parent | 7ce82d380a5c1cf88ac95f47952741d582a88062 (diff) | |
| download | homebrew-336c97637c5449018cde59f7d2a87a298692da08.tar.bz2 | |
mysql: fix typo, developer warning and add test.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mysql.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb index 241d66020..24bbc1d5b 100644 --- a/Library/Formula/mysql.rb +++ b/Library/Formula/mysql.rb @@ -106,6 +106,10 @@ class Mysql < Formula s.gsub!(/pidof/, 'pgrep') if MacOS.version >= :mountain_lion end ln_s "#{prefix}/support-files/mysql.server", bin + + # Move mysqlaccess to libexec + mv "#{bin}/mysqlaccess", libexec + mv "#{bin}/mysqlaccess.conf", libexec end def caveats; <<-EOS.undent @@ -114,7 +118,7 @@ class Mysql < Formula mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=#{var}/mysql --tmpdir=/tmp To set up base tables in another folder, or use a different user to run - mysqld, view the help for mysqld_install_db: + mysqld, view the help for mysql_install_db: mysql_install_db --help and view the MySQL documentation: @@ -155,4 +159,10 @@ class Mysql < Formula </plist> EOS end + + test do + (opt_prefix+'mysql-test').cd do + system './mysql-test-run.pl', 'status' + end + end end |
