~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/lib/My/Find.pm

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- cperl -*-
2
 
# Copyright (C) 2004-2006 MySQL AB
 
2
# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
5
5
# it under the terms of the GNU General Public License as published by
28
28
use base qw(Exporter);
29
29
our @EXPORT= qw(my_find_bin my_find_dir my_find_file NOT_REQUIRED);
30
30
 
31
 
our $vs_config_dir;
32
 
 
33
31
my $bin_extension= ".exe" if IS_WINDOWS;
34
32
 
35
33
# Helper function to be used for fourth parameter to find functions
158
156
  # User can select to look in a special build dir
159
157
  # which is a subdirectory of any of the paths
160
158
  my @extra_dirs;
161
 
  my $build_dir= $vs_config_dir || $ENV{MTR_VS_CONFIG} || $ENV{MTR_BUILD_DIR};
 
159
  my $build_dir= $::opt_vs_config || $ENV{MTR_VS_CONFIG} || $ENV{MTR_BUILD_DIR};
162
160
  push(@extra_dirs, $build_dir) if defined $build_dir;
163
161
 
164
162
  if (defined $extension){