1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Changed the build process to always checkout the latest stable version during build

This commit is contained in:
Logan Lowell 2011-06-16 13:12:07 -05:00
parent 42b2bacfd7
commit a30037363a
2 changed files with 10 additions and 14 deletions

View file

@ -12,8 +12,6 @@ end
require 'bundler'
require 'bundler/setup'
# require "rake/extensiontask"
Bundler::GemHelper.install_tasks
# desc "remove all generated artifacts except built v8 objects"
@ -33,21 +31,19 @@ Bundler::GemHelper.install_tasks
# ext.lib_dir = "lib/libv8"
# end
desc "Get the latest source"
task :src_check do
if File.exist? File.join('lib', 'libv8', 'v8', 'SConstruct') then
desc "Check out the latest stable version"
task :latest_stable do
Dir.chdir(File.join('lib', 'libv8', 'v8')) do
`git checkout -f tags/#{`git tag`.split.sort.last}`
end
else
puts "V8 source is missing. Did you initialize and update the submodule?"
puts "\tTry: git submodule update --init"
fail "Unable to find V8 source!"
`git fetch`
# We're checking out the latest tag. Sorted using Gem::Version
latest = `git tag`.split.map{|v| Gem::Version.new(v)}.sort.last
puts "Checking out latest stable V8 version (#{latest})"
`git checkout -f tags/#{latest}`
end
end
desc "Compile the V8 JavaScript engine"
task :compile => :src_check do
task :compile => :latest_stable do
puts "Compiling V8..."
Dir.chdir(File.join('lib', 'libv8')) do
`make`

@ -1 +1 @@
Subproject commit de15804c3fd5bbbb44543f00878ae301d92f7ace
Subproject commit 064fc53841ba4624b9e8487412ff274d034008d1