diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-22 14:40:37 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-22 14:40:37 +0000 |
| commit | ee27490b0c70351d3e6a824e8b60e2886c4a9b95 (patch) | |
| tree | fe96daf2bf2b62c6b074ade420cc9790323dd68d | |
| parent | bf6c0d891bee7cda96fc800054c5fcfe6d11bffc (diff) | |
| download | ruby-ee27490b0c70351d3e6a824e8b60e2886c4a9b95.tar.gz ruby-ee27490b0c70351d3e6a824e8b60e2886c4a9b95.tar.xz ruby-ee27490b0c70351d3e6a824e8b60e2886c4a9b95.zip | |
* ext/ripper/extconf.rb (have_command): replaced with find_executable.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | ext/ripper/extconf.rb | 10 |
2 files changed, 4 insertions, 10 deletions
@@ -1,8 +1,10 @@ -Thu Sep 22 23:36:24 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> +Thu Sep 22 23:40:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/mkmf.rb (find_executable0): default path if environment is not set. [ruby-dev:27281] + * ext/ripper/extconf.rb (have_command): replaced with find_executable. + Thu Sep 22 17:31:48 2005 Shugo Maeda <shugo@ruby-lang.org> * test/readline/test_readline.rb (TestReadline::replace_stdio): diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb index fd9370c33..adf02cb3e 100644 --- a/ext/ripper/extconf.rb +++ b/ext/ripper/extconf.rb @@ -4,7 +4,7 @@ require 'mkmf' require 'rbconfig' def main - unless have_command('bison') + unless find_executable('bison') unless File.exist?('ripper.c') or File.exist?("#{$srcdir}/ripper.c") $stderr.puts 'missing bison; abort' exit 1 @@ -17,12 +17,4 @@ def main create_makefile 'ripper' end -def have_command(cmd) - checking_for(cmd) { - ENV['PATH'].split(File::PATH_SEPARATOR).any? {|path| - File.executable?("#{path}/#{cmd}#{Config::CONFIG['EXEEXT']}") - } - } -end - main |
