<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -59,5 +59,8 @@ Rake.application.tasks.each do |t|
   if t.name =~ /:clobber/ then
     task :clobber =&gt; [t.name] 
   end 
+  if t.name =~ /:clean/ then
+    task :clean =&gt; [t.name]
+  end
 end
 </diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -52,6 +52,6 @@ end
 Hitimes::GEM_SPEC_WIN = Hitimes::GEM_SPEC.clone
 Hitimes::GEM_SPEC_WIN.platform = ::Gem::Platform.new( &quot;i386-mswin32_60&quot; )
 Hitimes::GEM_SPEC_WIN.extensions = []
-Hitimes::GEM_SPEC_WIN.files +=  [&quot;lib/hitimes_ext.so&quot;]
+Hitimes::GEM_SPEC_WIN.files +=  FileList[&quot;lib/hitimes/{1.8,1.9}/**.{dll,so}&quot;]
 
 Hitimes::SPECS = [ Hitimes::GEM_SPEC, Hitimes::GEM_SPEC_WIN ]</diff>
      <filename>gemspec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -35,12 +35,25 @@ if pkg_config = Configuration.for_if_exist?(&quot;packaging&quot;) then
     task :reinstall =&gt; [:uninstall, :repackage, :install]
 
     desc &quot;package up a windows gem&quot;
-    task :package_win =&gt; &quot;ext:build_win&quot; do
-      #cp &quot;ext/hitimes_ext.so&quot;, &quot;lib&quot;, :verbose =&gt; true
+    task :package_win =&gt; :clobber  do
+      Configuration.for(&quot;extension&quot;).cross_rbconfig.keys.each do |rbconfig|
+        v = rbconfig.split(&quot;-&quot;).last
+        s = v.sub(/\.\d$/,'')
+        sh &quot;rake ext:build_win-#{v}&quot;
+        mkdir_p &quot;lib/hitimes/#{s}&quot;, :verbose =&gt; true
+        cp &quot;ext/hitimes/hitimes_ext.so&quot;, &quot;lib/hitimes/#{s}/&quot;, :verbose =&gt; true
+      end
+
       Gem::Builder.new( Hitimes::GEM_SPEC_WIN ).build 
+      mkdir &quot;pkg&quot;
       mv Dir[&quot;*.gem&quot;].first, &quot;pkg&quot;
     end
 
+    task :clobber do
+      rm_rf &quot;lib/hitimes/1.8&quot;
+      rm_rf &quot;lib/hitimes/1.9&quot;
+    end
+
     desc &quot;distribute copiously&quot;
     task :copious =&gt; [:package, :package_win ] do
       gems = Hitimes::SPECS.collect { |s| &quot;#{s.full_name}.gem&quot; }</diff>
      <filename>tasks/distribution.rake</filename>
    </modified>
    <modified>
      <diff>@@ -41,10 +41,13 @@ if ext_config = Configuration.for_if_exist?('extension') then
       end
     end
 
+    win_builds = []
     ext_config.cross_rbconfig.keys.each do |v|
       s = v.split(&quot;-&quot;).last
       desc &quot;Build the extension for windows version #{s}&quot;
-      task &quot;build_win-#{s}&quot;  =&gt; :clobber do
+      win_bname = &quot;build_win-#{s}&quot;
+      win_builds &lt;&lt; win_bname
+      task win_bname =&gt; :clean do
         build_win( s )
       end
     end
@@ -55,7 +58,6 @@ if ext_config = Configuration.for_if_exist?('extension') then
         parts = path.split
         conf  = parts.last
         Dir.chdir(path.dirname) do |d| 
-          #sh &quot;rake clean&quot;
           sh &quot;make clean&quot;
         end 
       end 
@@ -67,10 +69,10 @@ if ext_config = Configuration.for_if_exist?('extension') then
         parts = path.split
         conf  = parts.last
         Dir.chdir(path.dirname) do |d| 
-          #sh &quot;rake clobber&quot;
           if File.exist?( &quot;Makefile&quot; ) then
             sh &quot;make distclean&quot;
           end
+          rm_f &quot;rbconfig.rb&quot;
         end 
       end 
     end</diff>
      <filename>tasks/extension.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9dc281d0ddb1136153c5a87df759be9540f2ec77</id>
    </parent>
  </parents>
  <author>
    <name>Jeremy Hinegardner</name>
    <email>jeremy@hinegardner.org</email>
  </author>
  <url>http://github.com/copiousfreetime/hitimes/commit/46593170c2b6751e864b58208508a9ac0397b3b1</url>
  <id>46593170c2b6751e864b58208508a9ac0397b3b1</id>
  <committed-date>2009-06-28T16:18:43-07:00</committed-date>
  <authored-date>2009-06-28T16:18:43-07:00</authored-date>
  <message>Fix up :clean and :clobber tasks</message>
  <tree>35b57f1c64480566a5e4a135100aad5567f95dc5</tree>
  <committer>
    <name>Jeremy Hinegardner</name>
    <email>jeremy@hinegardner.org</email>
  </committer>
</commit>
