Permalink
Browse files

updated README

  • Loading branch information...
1 parent 662bbd6 commit e91516e33cd0a49cd6e017ce4b7e788375638e7e @mark-moseley mark-moseley committed Aug 22, 2009
Showing with 7 additions and 8 deletions.
  1. +7 −8 README
View
15 README
@@ -4,7 +4,7 @@ This is initially to ease running the Ruby 1.9 ruby-debug installation.
Usage:
- header_dir = Ruby_core_source::get_ruby_core_source
+ header_dir = Ruby_core_source::create_makefile_with_core(hdr_check_proc, gem_name)
This will pull the Ruby sources from ftp.ruby-lang.org based on the current RUBY_VERSION,
RUBY_PATCHLEVEL, and RUBY_REVISION, and return the directory where the *.h and *.inc files
@@ -15,10 +15,9 @@ http://cloud.github.com/downloads/mark-moseley/ruby_core_source/preview_revision
Example use in extconf.rb:
-with_cppflags("-I" + Ruby_core_source::get_ruby_core_source) {
- if have_header("vm_core.h") then
- create_makefile("foo")
- else
- exit(1)
- end
-}
+hdrs = proc { have_header("vm_core.h") and have_header("iseq.h") }
+dir_config("ruby") # allow user to pass in non-standard core include directory
+if (!Ruby_core_source::create_makefile_with_core(hdrs, "foo")
+ # error
+ exit(1)
+end

0 comments on commit e91516e

Please sign in to comment.