aboutsummaryrefslogtreecommitdiffstats
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
parent4313ede92e6113f15df5be5976250979f3af1141 (diff)
downloadruby-openssl-9a1230b7e2e9abb16b94dca1e07aa57f27f55069.tar.gz
Move "Updating from trunk" doc to a rake task `:sync` [ci skip]
-rw-r--r--README.md9
-rw-r--r--Rakefile9
2 files changed, 9 insertions, 9 deletions
diff --git a/README.md b/README.md
index 5576ba28..d140eb29 100644
--- a/README.md
+++ b/README.md
@@ -32,12 +32,3 @@ and the official [openssl library](http://www.openssl.org/).
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
-
-## Updating from trunk
-
-```
-~/code/openssl => cp ../ruby/ext/openssl/*.{c,h,rb} ext/openssl/.
-~/code/openssl => cp -R ../ruby/ext/openssl/lib/ lib/
-~/code/openssl => cp ../ruby/test/openssl/test_*.rb test/.
-~/code/openssl => cp ../ruby/test/openssl/utils.rb test/utils.rb
-```
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