ruby-changes:46825
From: eregon <ko1@a...>
Date: Sun, 28 May 2017 20:30:59 +0900 (JST)
Subject: [ruby-changes:46825] eregon:r58940 (trunk): Add tool to pull latest mspec/spec when commits have been synchronized
eregon 2017-05-28 20:30:55 +0900 (Sun, 28 May 2017) New Revision: 58940 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58940 Log: Add tool to pull latest mspec/spec when commits have been synchronized Added files: trunk/tool/pull-latest-mspec-spec Index: tool/pull-latest-mspec-spec =================================================================== --- tool/pull-latest-mspec-spec (nonexistent) +++ tool/pull-latest-mspec-spec (revision 58940) @@ -0,0 +1,18 @@ https://github.com/ruby/ruby/blob/trunk/tool/pull-latest-mspec-spec#L1 +#!/bin/bash + +# Assumes all commits have been synchronized to https://github.com/ruby/spec +# See spec/mspec/tool/sync/sync-rubyspec.rb + +rm -rf spec/mspec +git clone --depth 1 https://github.com/ruby/mspec.git spec/mspec +commit=$(git -C spec/mspec log -n 1 --format='%h') +rm -rf spec/mspec/.git +git add spec/mspec +git commit -m "Update to ruby/mspec@${commit}" + +rm -rf spec/rubyspec +git clone --depth 1 https://github.com/ruby/spec.git spec/rubyspec +commit=$(git -C spec/rubyspec log -n 1 --format='%h') +rm -rf spec/rubyspec/.git +git add spec/rubyspec +git commit -m "Update to ruby/spec@${commit}" Property changes on: tool/pull-latest-mspec-spec ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/