aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2016-01-18 18:02:57 +0900
committerZachary Scott <e@zzak.io>2016-01-18 18:02:57 +0900
commit9a1230b7e2e9abb16b94dca1e07aa57f27f55069 (patch)
tree1522d640246d4dba151d35140e74faaafd503192 /Rakefile
parent4313ede92e6113f15df5be5976250979f3af1141 (diff)
downloadruby-openssl-9a1230b7e2e9abb16b94dca1e07aa57f27f55069.tar.gz
Move "Updating from trunk" doc to a rake task `:sync` [ci skip]
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 861ac39c..f7b51510 100644
--- a/Rakefile
+++ b/Rakefile
@@ -11,3 +11,12 @@ Rake::TestTask.new do |t|
t.libs << 'test'
t.warning = true
end
+
+task :sync do
+ trunk = ENV.fetch("RUBY_TRUNK_PATH", "../ruby")
+
+ sh "cp #{trunk}/ext/openssl/*.c #{trunk}/ext/openssl/*.h #{trunk}/ext/openssl/*.rb ext/openssl/."
+ sh "cp -R #{trunk}/ext/openssl/lib/* lib/."
+ sh "cp #{trunk}/test/openssl/test_*.rb test/."
+ sh "cp #{trunk}/test/openssl/utils.rb test/utils.rb"
+end