diff options
author | Zachary Scott <e@zzak.io> | 2016-01-18 18:02:57 +0900 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2016-01-18 18:02:57 +0900 |
commit | 9a1230b7e2e9abb16b94dca1e07aa57f27f55069 (patch) | |
tree | 1522d640246d4dba151d35140e74faaafd503192 | |
parent | 4313ede92e6113f15df5be5976250979f3af1141 (diff) | |
download | ruby-openssl-9a1230b7e2e9abb16b94dca1e07aa57f27f55069.tar.gz |
Move "Updating from trunk" doc to a rake task `:sync` [ci skip]
-rw-r--r-- | README.md | 9 | ||||
-rw-r--r-- | Rakefile | 9 |
2 files changed, 9 insertions, 9 deletions
@@ -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 -``` @@ -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 |