Current Path : /home/usr.opt/mysql57/mysql-test/suite/ndb/include/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/ndb/include/ndb_find_print_file_tool.inc |
--perl use strict; use lib "lib/"; use My::Find; use File::Basename; my $mysql_test_dir = $ENV{MYSQL_TEST_DIR} or die "Need MYSQL_TEST_DIR"; my $basedir = dirname($mysql_test_dir); # In the RPM case, binaries and libraries are installed in the # default system locations, instead of having our own private base # directory. And we install "usr/share/mysql-test". Moving up two # more directory relative to "mysql-test" gives us a usable base # directory for RPM installs. if (! -d "$basedir/sql" and ! -d "$basedir/bin" ) { $basedir= dirname($basedir); } my $bindir = $ENV{MTR_BINDIR} || $basedir; # Out of source set MTR_BINDIR my $NDB_PRINT_FILE = my_find_bin($bindir, ["storage/ndb/src/kernel/blocks", "bin"], "ndb_print_file"); my $vardir = $ENV{MYSQLTEST_VARDIR} or die "Need MYSQLTEST_VARDIR" ; open ( OUTPUT, ">$vardir/tmp/ndb_find_print_file_tool_result.inc") ; print OUTPUT "let \$NDB_PRINT_FILE=$NDB_PRINT_FILE;\n"; close (OUTPUT); EOF --source $MYSQLTEST_VARDIR/tmp/ndb_find_print_file_tool_result.inc --remove_file $MYSQLTEST_VARDIR/tmp/ndb_find_print_file_tool_result.inc