Changeset 159

Show
Ignore:
Timestamp:
12/26/2007 11:46:26 (8 months ago)
Author:
why
Message:

* Rakefile: use RbConfig? and RUBY_PLATFORM for Ruby 1.9.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Rakefile

    r156 r159  
    66require 'fileutils' 
    77include FileUtils 
     8 
     9RbConfig = Config unless defined?(RbConfig) 
    810 
    911NAME = "hpricot" 
     
    8991  file ext_so => ext_files do 
    9092    Dir.chdir(ext) do 
    91       sh(PLATFORM =~ /win32/ ? 'nmake' : 'make') 
     93      sh(RUBY_PLATFORM =~ /win32/ ? 'nmake' : 'make') 
    9294    end 
    9395    mkdir_p ARCHLIB 
     
    130132 
    131133Win32Spec = SPEC.dup 
    132 Win32Spec.platform = Gem::Platform::WIN32 
     134Win32Spec.platform = Gem::Platform::CURRENT 
    133135Win32Spec.files = PKG_FILES + ["#{ARCHLIB}/hpricot_scan.so", "#{ARCHLIB}/fast_xs.so"] 
    134136Win32Spec.extensions = []