From 9a1230b7e2e9abb16b94dca1e07aa57f27f55069 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Mon, 18 Jan 2016 18:02:57 +0900 Subject: Move "Updating from trunk" doc to a rake task `:sync` [ci skip] --- README.md | 9 --------- Rakefile | 9 +++++++++ 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 -- cgit v1.2.3