Changeset 275

Show
Ignore:
Timestamp:
03/17/2008 13:16:20 (8 months ago)
Author:
why
Message:
  • Rakefile: adding back in the mingw32 support for building a windows gem on linux.
Location:
trunk
Files:
2 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Rakefile

    r273 r275  
    88 
    99NAME = "redcloth" 
     10OLD_NAME = "RedCloth" 
    1011SUMMARY = "a fast library for formatting Textile and Markdown as HTML" 
    1112REV = `svn info`[/Revision: (\d+)/, 1] rescue nil 
    12 VERS = ENV['VERSION'] || "1" + (REV ? ".#{REV}" : "") 
     13VERS = ENV['VERSION'] || "3" + (REV ? ".#{REV}" : "") 
    1314CLEAN.include ['ext/redcloth_scan/*.{bundle,so,obj,pdb,lib,def,exp}', 'ext/redcloth_scan/Makefile',  
    1415               '**/.*.sw?', '*.gem', '.config'] 
     
    7475spec = 
    7576    Gem::Specification.new do |s| 
    76         s.name = NAME 
     77        s.name = OLD_NAME 
    7778        s.version = VERS 
    7879        s.platform = Gem::Platform::RUBY 
     
    151152 
    152153Win32Spec = Gem::Specification.new do |s| 
    153   s.name = NAME 
     154  s.name = OLD_NAME 
    154155  s.version = VERS 
    155   s.platform = Gem::Platform::CURRENT 
     156  s.platform = Gem::Platform::WIN32 
    156157  s.has_rdoc = false 
    157158  s.extra_rdoc_files = ["README", "CHANGELOG", "COPYING"] 
     
    170171end 
    171172   
    172 WIN32_PKG_DIR = "redcloth-" + VERS 
     173WIN32_PKG_DIR = "#{OLD_NAME}-#{VERS}" 
    173174 
    174175file WIN32_PKG_DIR => [:package] do 
     
    188189    Gem::Builder.new(Win32Spec).build 
    189190    verbose(true) { 
    190       mv Dir["*.gem"].first, "../pkg/redcloth-#{VERS}-mswin32.gem" 
     191      mv Dir["*.gem"].first, "../pkg/#{OLD_NAME}-#{VERS}-mswin32.gem" 
    191192    } 
    192193  end