Permalink
Browse files

make build command easier to read for libffi

  • Loading branch information...
1 parent 00a2544 commit 4a977ddb68fd88e3d6cf1418a2531e6ad5a53fb2 @hone hone committed Nov 5, 2011
Showing with 10 additions and 1 deletion.
  1. +10 −1 Rakefile
View
11 Rakefile
@@ -181,7 +181,16 @@ task "libffi:install", :version do |t, args|
FileUtils.rm_rf("#{tmpdir}/*")
sh "curl ftp://sourceware.org/pub/libffi/libffi-#{version}.tar.gz -s -o - | tar vzxf -"
- sh "vulcan build -v -o #{name}.tgz --source #{name} --command=\"env CFLAGS=-fPIC ./configure --enable-static --disable-shared --prefix=#{prefix} && make && make install && mv #{prefix}/lib/#{name}/include #{prefix} && rm -rf #{prefix}/lib/#{name}\""
+
+ build_command = [
+ "env CFLAGS=-fPIC ./configure --enable-static --disable-shared --prefix=#{prefix}",
+ "make",
+ "make install",
+ "mv #{prefix}/lib/#{name}/include #{prefix}",
+ "rm -rf #{prefix}/lib/#{name}"
+ ].join(" && ")
+
+ sh "vulcan build -v -o #{name}.tgz --source #{name} --command=\"#{build_command}\""
s3_upload(tmpdir, name)
end
end

0 comments on commit 4a977dd

Please sign in to comment.