[macruby-changes] [2050] MacRuby/branches/experimental/rakelib/builder.rake

source_changes at macosforge.org source_changes at macosforge.org
Wed Jul 22 16:31:44 PDT 2009


Revision: 2050
          http://trac.macosforge.org/projects/ruby/changeset/2050
Author:   pthomson at apple.com
Date:     2009-07-22 16:31:44 -0700 (Wed, 22 Jul 2009)
Log Message:
-----------
Added Digest::SHA2, Digest::MD5, and Digest::RMD160.

Modified Paths:
--------------
    MacRuby/branches/experimental/rakelib/builder.rake

Modified: MacRuby/branches/experimental/rakelib/builder.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/builder.rake	2009-07-22 23:31:43 UTC (rev 2049)
+++ MacRuby/branches/experimental/rakelib/builder.rake	2009-07-22 23:31:44 UTC (rev 2050)
@@ -2,6 +2,7 @@
 require 'rake'
 
 SUPPORTED_EXTENSIONS = ['ext/ripper', 'ext/digest']
+DIGESTS = %w{ sha1 md5 rmd160 bubblebabble sha2 }
 
 # We monkey-patch the method that Rake uses to display the tasks so we can add
 # the build options.
@@ -325,9 +326,11 @@
 	    sh "/usr/bin/make top_srcdir=../.. ruby=\"../../miniruby -I../.. -I../../lib\" libdir=../.."
 	  end
 	end
-	Dir.chdir('ext/digest/sha1') do
-		sh "../../../miniruby -I../../.. -I../../../lib extconf.rb"
-    sh "/usr/bin/make top_srcdir=../../.. ruby=\"../../../miniruby -I../../.. -I../../../lib\" libdir=../../.."
+	DIGESTS.each do |digest|
+		Dir.chdir("ext/digest/#{digest}") do
+			sh "../../../miniruby -I../../.. -I../../../lib extconf.rb"
+	    sh "/usr/bin/make top_srcdir=../../.. ruby=\"../../../miniruby -I../../.. -I../../../lib\" libdir=../../.."
+		end
 	end
   $stderr.puts "Skipping other extensions (for now)..."
 end
@@ -377,7 +380,11 @@
 	      sh "/usr/bin/make top_srcdir=../.. ruby=../../miniruby install"
 	    end
 		end
-		Dir.chdir('ext/digest/sha1') { sh "/usr/bin/make top_srcdir=../../.. ruby=../../../miniruby install" }
+		DIGESTS.each do |digest|
+			Dir.chdir("ext/digest/#{digest}") do
+	      sh "/usr/bin/make top_srcdir=../.. ruby=../../miniruby install"
+			end
+		end
     sh "./miniruby instruby.rb #{INSTRUBY_ARGS}"
   end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090722/0f404245/attachment.html>


More information about the macruby-changes mailing list