Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: db42e9bd60
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.674 kb
# -*- ruby -*-
require 'rakelib/git'
namespace :oniguruma do
desc "Synchronize vendor/oniguruma with a current clone of rubinius/oniguruma"
task :sync do
unless dir = ENV['DIR']
raise "Use DIR= to specify a clone of oniguruma"
end
unless is_git_project dir, "oniguruma.git"
raise "#{dir} is not an oniguruma clone. Clone from 'git://github.com/rubinius/oniguruma.git'"
end
src_dir = "vendor/oniguruma"
rm_rf src_dir
rsync "#{dir}/*", src_dir
version = Dir.chdir(dir) { `git log --pretty=oneline -1`[0..7] }
sh "git add #{src_dir}"
sh "git commit -m 'Updated vendor/oniguruma to #{version}.' #{src_dir}"
end
end
Jump to Line
Something went wrong with that request. Please try again.