Skip to content

Commit ac1eccc

Browse files
committed
Rakefile: remove outdated sync tasks
I use ruby.git's tool/sync_default_gems.rb and simple git cherry-pick instead nowadays. These tasks actually don't correctly work because they use outdated path references and expect ruby.git to be using git-svn, which is not the case anymore. Reported-by: rkoster <[email protected]> Fixes: #495
1 parent 12250c7 commit ac1eccc

File tree

2 files changed

+0
-140
lines changed

2 files changed

+0
-140
lines changed

Rakefile

-34
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,4 @@ task :debug do
2626
ruby "-I./lib -ropenssl -ve'puts OpenSSL::OPENSSL_VERSION, OpenSSL::OPENSSL_LIBRARY_VERSION'"
2727
end
2828

29-
namespace :sync do
30-
task :from_ruby do
31-
sh "./tool/sync-with-trunk"
32-
end
33-
34-
task :to_ruby do
35-
trunk_path = ENV.fetch("RUBY_TRUNK_PATH", "../ruby")
36-
37-
rsync = "rsync -av --delete"
38-
excludes = %w{Makefile extconf.h mkmf.log depend *.o *.so *.bundle}
39-
excludes.each { |name| rsync << " --exclude #{name}" }
40-
41-
paths = [
42-
["ext/openssl/", "ext/openssl/"],
43-
["lib/", "ext/openssl/lib/"],
44-
["sample/", "sample/openssl/"],
45-
["test/fixtures/", "test/openssl/fixtures/"],
46-
["test/utils.rb", "test/openssl/"],
47-
["test/ut_eof.rb", "test/openssl/"],
48-
["test/test_*", "test/openssl/"],
49-
["History.md", "ext/openssl/"],
50-
]
51-
paths.each do |src, dst|
52-
sh "#{rsync} #{src} #{trunk_path}/#{dst}"
53-
end
54-
55-
gemspec_file = File.expand_path("../openssl.gemspec", __FILE__)
56-
gemspec = eval(File.read(gemspec_file), binding, gemspec_file)
57-
File.write("#{trunk_path}/ext/openssl/openssl.gemspec", gemspec.to_ruby)
58-
59-
puts "Don't forget to update ext/openssl/depend"
60-
end
61-
end
62-
6329
task :default => :test

tool/sync-with-trunk

-106
This file was deleted.

0 commit comments

Comments
 (0)